Error:Execution Failed for Task ':App:Dexdebug'. Com.Android.Ide.Common.Process.Processexception

Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException

Finally I solved this problem by changing compile 'com.google.guava:guava:18.0 ' to compile 'com.google.guava:guava-jdk5:17.0'

Error:Execution failed for task ':app:dexDebug'.

I have figured it out, actually the problem was caused by

compile 'com.firebase:firebase-client-android:2.5.2'

which i have removed since its an old library,
and I think is a duplicate of

compile 'com.google.firebase:firebase-database:9.4.0'

which is the new library since Firebase changed as per point 3 of this article

changed to this:

compile 'com.google.firebase:firebase-database:9.4.0'
compile 'com.google.firebase:firebase-core:9.4.0'
compile 'com.firebaseui:firebase-ui:0.4.4'

Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException

I had got the same error. But I resolved the issue by adding the following missing line from build.gradle in dependencies.
compile 'com.parse.bolts:bolts-android:1.+'

After adding this line, my dependencies body was like this:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.parse.bolts:bolts-android:1.+'
compile fileTree(dir: 'libs', include: 'Parse-*.jar')
compile fileTree(dir: 'libs', include: "commons-io-2.4.jar") }

You can match with yours too and see if it can help you too

Getting Error:Execution failed for task ':app:dexDebug'

You need to add multiDexEnabled true . Courtesy goes to multiDexEnabled

The Android plugin for Gradle available in Android SDK Build Tools
21.1 and higher supports multidex as part of your build configuration. Make sure you update the Android SDK Build Tools tools and the Android
Support Repository to the latest version using the SDK Manager before
attempting to configure your app for multidex.

defaultConfig {
...
minSdkVersion //Your Version
targetSdkVersion //Your Version
...

// Enabling multidex support.
multiDexEnabled true
}

Call this in your dependencies

  dependencies {
compile 'com.android.support:multidex:1.0.1'
}

Advice

You can use compile 'com.parse:parse-android:1.12.0'

Then Clean-Rebuild-Restart-Sync your Project . Hope this helps .

Error:Newer :Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException

Add

  1. multiDexEnabled true

  2. call v7:23.1.0

Try with this

 android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.ibussinesscard"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'

}

Then Clean-Rebuild-Sync Your Project .



Related Topics



Leave a reply



Submit