码迷,mamicode.com
首页 > 移动开发 > 详细

AS中一个报错解决:LoggedErrorException: Failed to run command初用Android Studio注意

时间:2015-01-12 21:05:03      阅读:346      评论:0      收藏:0      [点我收藏+]

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!