Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execution failed for task ':app:dexDebug' Android Studio

The application was able to execute before updating my android studio,this is the error I am getting:

Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException:
   org.gradle.process.internal.ExecException: 
    Process 'command 'C:\Program Files\Java\jdk1.8.0_25\bin\java.exe'' finished 
    with non-zero exit value 1
like image 891
Rim Gazzah Avatar asked Mar 20 '15 02:03

Rim Gazzah


2 Answers

If you have support-v4 and support-v7 (with different version) in build.gradle then add this line into your build.gradle at top.

configurations { all*.exclude group: 'com.android.support', module: 'support-v4' }

Also read this

like image 152
noman404 Avatar answered Oct 04 '22 22:10

noman404


in my case, the

compile 'com.google.android.gms:play-services:+'

in my build.gradle exceeded the 65k method limit.

i changed it to

compile 'com.google.android.gms:play-services-maps:6.5.87'

to fix it (i only need maps in my application)

hope that helps

like image 28
Lukas Lechner Avatar answered Oct 04 '22 22:10

Lukas Lechner