无法完成Gradle执行

时间:2014-12-10 09:10:39

标签: android android-studio

当我尝试运行Android应用程序时,我收到错误"无法完成Gradle执行。原因:"

enter image description here

在Gradle控制台中我收到错误:

* What went wrong:
The system cannot find the path specified.
Execution failed for task ':app:preDexBetaDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
D:\Android set up\adt-bundle-windows-x86-20140702\adt-bundle-windows-x86-20140702\sdk\build-tools\21.1.1\dx.bat --dex --output D:\android-5thDec\app\build\intermediates\pre-dexed\beta\debug\jackson-databind-2.4.4-47301a2fc4ef9e8c53b857d7529f32f6ef237b60.jar C:\Documents and Settings\ppd\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-databind\2.4.4\e2ff13c3de2f5a2ab2449a3dace2b0d1c37bd8ee\jackson-databind-2.4.4.jar
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.

google之后我得到this link但是当我尝试删除密钥时,它无法删除。

任何建议将不胜感激。提前谢谢。

1 个答案:

答案 0 :(得分:0)

安装Android studio v1.0后我遇到了同样的问题,更改sdk管理器的目录为我解决了这个问题。

http://developer.android.com/sdk/index.html下载sdk工具,然后提取到您想要的位置

点击文件 - >项目结构

在Android SDK位置将其更改为您解压缩sdk文件夹的路径