Execution failed for task ':app:dexDebug'

2020-03-12 04:42发布

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

8条回答
Evening l夕情丶
2楼-- · 2020-03-12 05:22

Do this it really help me! configurations { all*.exclude group: 'com.android.support', module: 'support-v4' } write this inside gradle module. Hope it help!

查看更多
Summer. ? 凉城
3楼-- · 2020-03-12 05:28

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

查看更多
登录 后发表回答