Execution failed for task ':app:buildInfoDebugLoader'. > Exception while doing past iteration backup

本文介绍了如何解决在使用Android Studio时遇到的构建失败问题。错误出现在执行“:app:buildInfoDebugLoader”任务期间,提示源文件和目标文件必须不同。解决方法包括选择“Build”->“Rebuild Project”重建项目,或选择“Run”->“Clean and Rerun”清理并重新运行。

Android Studio错误如下:

Error:FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:buildInfoDebugLoader'.
> Exception while doing past iteration backup : Source D:\Android Studio workspace\Test\app\build\intermediates\builds\debug\31608184887113\classes.dex and destination D:\Android Studio workspace\PointLife\NFCpay\app\build\intermediates\builds\debug\31608184887113\classes.dex must be different

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

解决方法:

Android studio里Build -> Rebuild Project  然后再运行就行了。

或者Run -> Clean and Rerun (或Run -> Clean and Rerun'app'


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值