afom
afom

Reputation: 61

Android studio dependency error

I was using eclipse and I have imported my project to android studio. It was working fine for a few days then suddenly the error showing below comes up.

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

build.gradle looks like:

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

allprojects {
    repositories {
        mavenCentral()
    }
}

thank you for your help!

Upvotes: 0

Views: 745

Answers (1)

Piyush Agarwal
Piyush Agarwal

Reputation: 25858

Make sure you have dx.jar under the path

#YOUR_ANDROID_SDK\build-tools\19.0.X\lib

Check dx.jar in only the version which you are using in your project's build.gradle files. If its not there download the respective build tools again from your sdk manager and try.

Upvotes: 3

Related Questions