Reputation: 109
I am getting these 2 errors while building my android project and I don't know what they mean.
Error#1:The number of method references in a .dex file cannot exceed 64K.
Error#2: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_91\bin\java.exe'' finished with non-zero exit value 2
Upvotes: 2
Views: 96
Reputation: 16429
You need to enable multi-dex support. Check this answer for more details and instructions how to enable it.
Upvotes: 1