我的第一个android程序构建失败。错误:系统找不到指定的路径

时间:2014-09-27 07:20:02

标签: android android-studio

从android studio复制的错误消息如下:

FAILURE: Build failed with an exception.

What went wrong:

Execution failed for task ':app:dexDebug'.
com.android.ide.common.internal.LoggedErrorException: 
Failed to run command:

E:\Android\android-studio\sdk\build-tools\android-4.4W\dx.bat --dex --num-threads=4 
--output F:\AndroidStudioProjects\GeoQuiz\app\build\intermediates\dex\debug    
F:\AndroidStudioProjects\GeoQuiz\app\build\intermediates\classes\debug  
F:\AndroidStudioProjects\GeoQuiz\app\build\intermediates\dependency-cache\debug

Error Code:
    1
Output:
    The system cannot find the path specified.


Try:
Run with --stacktrace option to get the stack trace. 
Run with --info or --debug option to get more log output.
我之前使用的是eclipse IDE,出现了同样的错误信息,即“系统找不到指定的路径”。

我从网上搜索了几乎所有类似的问题,问题尚未解决。

IDE内部使用一些.bat文件来查找java.exe位置,但我的.bat文件由于某种原因而无法使用。

所以我怀疑问题来自我的另一个问题: My bat file can't run correctly, why?

0 个答案:

没有答案