标签:
Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: D:\Android\android-sdk\build-tools\21.1.1\dx.bat --dex --no-optimize --output E:\开源学习\Canvas\app\build\intermediates\dex\debug --input-list=E:\学习\Canvas\app\build\intermediates\tmp\dex\debug\inputList.txt Error Code: 1 Output: UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: E:\寮?婧愬涔燶Canvas\app\build\intermediates\classes\debug: file not found at com.android.dex.util.FileUtils.readFile(FileUtils.java:51) at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:169) at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) at com.android.dx.command.dexer.Main.processOne(Main.java:632) at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:279) at com.android.dx.command.dexer.Main.run(Main.java:245) at com.android.dx.command.dexer.Main.main(Main.java:214) at com.android.dx.command.Main.main(Main.java:106)
历经艰辛,期初以为是编译器有bug,或者是ADT的问题,使用其他人的办法也没有解决问题。几天探索,后来将工程从中文路径下移到英文路径,结果就好了。
总结下:
Android Studio 下,工程路径绝对不要用中文命名,一律用英文!
AS中一个报错解决:LoggedErrorException: Failed to run command初用Android Studio注意
标签:
原文地址:http://blog.csdn.net/changhuiyuanh/article/details/42647205