刚开始学安卓,运行程序时发现不成功。
查了一下因为我的电脑处理器是AMD的,好像不支持虚拟机调试。
所以改用真机调试,而且速度会快很多。
但在运行时报错提示
Execution failed for task ':app:clean'.
> Unable to delete file
搜了下这个错误原因
If you are using Android Studio 2.0 Beta, this issue might appear (more likely if you are working on NTFS filesystem) and it seems like the "Instant Run" is the culprit. Search for "Instant Run" in settings and uncheck the box.
在file下点击settings再搜instant run,把第一个enable instant run不用勾选就可以了
本文介绍了解决AMD处理器电脑上Android应用程序调试过程中出现的'Execution failed for task':app:clean'错误的方法,通过禁用Android Studio中的Instant Run功能来避免文件删除失败的问题。
4231

被折叠的 条评论
为什么被折叠?



