Android工作室依赖性错误

时间:2014-03-05 06:11:31

标签: dependencies android-studio

我正在使用eclipse,我已将我的项目导入android studio。它工作正常几天然后突然出现下面的错误。

Execution failed for task ':app:preDexDebug'.
> dx is missing

build.gradle看起来像:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.7.+'
    }
}

allprojects {
    repositories {
        mavenCentral()
    }
}

谢谢你的帮助!

1 个答案:

答案 0 :(得分:3)

确保路径

下有dx.jar
#YOUR_ANDROID_SDK\build-tools\19.0.X\lib

仅检查您在项目dx.jar文件中使用的版本中的build.gradle。如果没有,请从您的sdk管理器再次下载相应的构建工具并尝试。

相关问题