2014-07-05 46 views
0

我无法运行任何项目。我创建了一个具有活动性的默认项目,当我尝试运行它时,出现此错误。无法在Android Studio中运行任何项目0.8.1

Error:Execution failed for task ':app:dexDebug'. 
    > com.android.ide.common.internal.LoggedErrorException: Failed to run command: 
     C:\androidstudio\sdk\build-tools\android-4.4W\dx.bat --dex --num-threads=4 --output C:\projects\app\build\intermediates\dex\debug C:\projects\app\build\intermediates\classes\debug C:\projects\app\build\intermediates\dependency-cache\debug 
    Error Code: 
     1 
    Output: 
     The system cannot find the path specified. 
     The system cannot find the path specified. 
     The system cannot find the path specified. 

它试图复制到dex /调试即时猜测,但没有这样做的任何依赖项。 有什么建议吗?

+0

这解决了它对我来说http://stackoverflow.com/questions/21748085/android-studio-giving-us-following-error/21752326#21752326 –

回答

0

首先,您应该仔细检查路径C:\androidstudio\sdk\build-tools\android-4.4W\dx.bat确实存在。这可能是因为你的SDK配置指向了一个无效的目录(尽管这是不太可能的,因为你在编译/构建过程中有多远)。

之后,这看起来非常相似,a similar error on OSX,所以你可以尝试提出的解决方案在那里,这是一个使用摇篮包装脚本,应该在你的项目的根目录,然后尝试再次编译运行gradlew.bat --stop

相关问题