简体   繁体   中英

com.android.build.api.transform.TransformException 'command 'C:\Program Files\Java\jdk1.8.0\bin\java.exe'' finished with non-zero exit value 3

i just added classpath 'com.google.gms:google-services:3.0.0' and updated google.android.gms:play-services:8.3.0 to 9.0.0 and i get this Error please tell me how to solve it?

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

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\\Program Files\\Java\\jdk1.8.0_65\\bin\\java.exe'' finished with non-zero exit value 3

Try the solution in this SO question , by adding multiDexEnabled true to your app build.gradle file.

defaultConfig {
multiDexEnabled true
}

Also double check your .jar file and lib that appearing multiple times in your project.

For more information and other solutions, check this related SO questions:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM