When trying to start a project, I encountered the following 2 errors:
Error: The number of method references in a .dex file cannot exceed 64K. Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html
Error: Execution failed for task ': app: transformClassesWithDexForOkhttpDebug'. 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_60 \ bin \ java.exe '' finished with non-zero exit value 2
After google my first mistake, I found an interesting greeting on the official website:
If you have a built-in Android app, then you have a lot of code!
But what if my application is in fact not so clumsy and clearly does not need to be connected to multidex.