Android Studio 编译错误 Error:Execution failed for task ':app:buildInfoDebugLoader'.

今天来到打开昨天的项目运行正常,然后改动了一点代码编译报错:

Error:Execution failed for task ':app:buildInfoDebugLoader'.
> Exception while doing past iteration backup : Source /Users/syf/Desktop/20170119TabBar2Fragment/app/build/intermediates/builds/debug/37748855462935/classes.dex and destination /Users/syf/Desktop/20170119TabBar2Fragment/app/build/intermediates/builds/debug/37748855462935/classes.dex must be different

把代码改动的地方恢复还是一只再报这个错误,想到了iOS开发中遇到莫名的错误第一步就是clean一下,重新编译一下项目。Android Studio更好,直接有Rebuild功能(Build选项里面),重新build项目后,错误消失,正常运行。
操作位置

posted @ 2017-01-20 09:16  沉默学飞翔  阅读(1040)  评论(0编辑  收藏  举报