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
multiDexEnabled true
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
Android Recyclerview Addition & Removal of Items
How to Use Intent.Flag_Activity_Clear_Top to Clear the Activity Stack
Illegalblocksizeexception When Trying to Encrypt and Decrypt a String with Aes
Tomcat 7: How to Set Initial Heap Size Correctly
Verify If a Process Is Running Using Its Pid in Java
Find the Pid of a Java Process Under Linux
Decibel Values at Specific Points in Wav File
How to Read File on Windows and Linux from Java
Converting a String to Hexadecimal in Java
Hibernate: Hbm2Ddl.Auto=Update in Production
Java Says Filenotfoundexception But File Exists
Looking for a CSS Parser in Java
How to Unzip Files Programmatically in Android
How to Run Java Application on Startup of Ubuntu Linux
Equivalent of Data Protection API on Linux
Which Operating Systems Support Native (Inotify-Like) File Watching in Java
Do Threads Created in Java Behave Differently on Windows and Linux