Android Studio Build Failed With An Exception Execution Failed For Task ':app:dexdebug'
Console log: FAILED FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gra
Solution 1:
I found solution
just change
compile'com.android.support:support-v4:19.1.+'
to
compile'com.android.support:support-v4:22.0.0'
also change
compile'com.android.support:appcompat-v7:21.0.3'
to
compile'com.android.support:appcompat-v7:22.0.0'
And use Multi-dex property in your build.gradle file like this:
defaultConfig {
applicationId "com.sendpulse.sendpulse"
minSdkVersion 15
targetSdkVersion 21
multiDexEnabled true
}
then clean project and rebuild
Solution 2:
I also had the similar problem. I removed each jar and checked one by one until i found it. Basically this problem occur due to jar files. So,try this, Put your jar files one by one in dependencies and test.You'll easily get the fix.
Solution 3:
- Do a project cleanup. Go to Build->Clean Project and try again
- If (1) doesn't work, close and restart your compiler.
- Do a quick check on your Build.Grade file, make sure only the important files are kept, and delete the unused ones.
- If all else fails, add "multiDexEnabled true" to your app-level Build.Gradle file.
Do this:
defaultConfig {
applicationId "com.yourcompanyname.yourappname"
minSdkVersion 21
targetSdkVersion 23
versionCode 1
versionName "1.0"// Enabling multidex support.
multiDexEnabled true
}
Post a Comment for "Android Studio Build Failed With An Exception Execution Failed For Task ':app:dexdebug'"