1. 程式人生 > >Execution failed for task ':app:buildInfoDebugLoader'.must be different

Execution failed for task ':app:buildInfoDebugLoader'.must be different

安卓開發遇到如下錯誤:

* What went wrong:
Execution failed for task ':app:buildInfoDebugLoader'.
> Exception while doing past iteration backup : 
Source E:\androidprojects\ServicePractice\app\build\intermediates\builds\debug\45722994204319\classes.dex and destination 
E:\androidprojects\ServicePractice\app\build\intermediates\builds\debug\45722994204319\classes.dex must be different

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

我的解決方法是:

先clean project, 然後再rebuild project.即可完美解決