Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_92\bin\java.exe'' finished with non-zero exit value 2
Asked
Active
Viewed 57 times
0

OneCricketeer
- 179,855
- 19
- 132
- 245
-
try this http://stackoverflow.com/a/40958251/5188159 – Charuක Dec 22 '16 at 06:37
-
1Possible duplicate of [com.android.build.transform.api.TransformException](http://stackoverflow.com/questions/32807587/com-android-build-transform-api-transformexception) – Charuක Dec 22 '16 at 06:37
-
@Charuka Multidex is not the solution to every gradle problem. – OneCricketeer Dec 22 '16 at 06:38
-
@Raveesh please [edit] your question with your `build.gradle` – OneCricketeer Dec 22 '16 at 06:41
-
may be this helps you http://stackoverflow.com/questions/30001051/appdexdebug-execexception-finished-with-non-zero-exit-value-2 – Charuක Dec 22 '16 at 06:43
-
you will have to enable multidex. – williamj949 Dec 22 '16 at 07:01
1 Answers
0
I think you have to set JAVA_HOME path again. Try adding multiDexEnabled true to your app build.gradle file.
defaultConfig {
multiDexEnabled true
}

Chandu
- 1
- 5