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
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'
Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException
This options may solve the issue
- Clean The Project
- Remove all unused dependencies in
build.gradle
If not solved then Declare this in gradle config.
defaultConfig {
multiDexEnabled true
}
Related Topics
How to Make Spring Inject Value into a Static Field
Passing a String by Reference in Java
How to Use Mockito with Junit5
Change Name of Import in Java, or Import Two Classes with the Same Name
How to Pass an Arraylist to a Varargs Method Parameter
Indexes of All Occurrences of Character in a String
The Specified Dsn Contains an Architecture Mismatch Between the Driver and Application. Java
Setting a Timeout for Socket Operations
How to Write Custom Exceptions
How to Generate Multiple Lines in PDF Using Apache PDFbox
Prevent Webview from Displaying "Web Page Not Available"
Android App Bundle Introduces Resource Not Found Crash in Android App
How to Blur Background Images in Android
How to Show Ellipses on My Textview If It Is Greater Than the 1 Line