에뮬레이터뿐 아니라 Android 디바이스에서 프로젝트를 실행하려고합니다. 하지만 불행히도 나는 두 가지 오류가 발생합니다.android studio에서 프로젝트를 실행할 수 없습니다.
오류 1 :
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
오류 2 :
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 '/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2
이 시도 : http://stackoverflow.com/questions/26609734/how-to-enable-multidexing-with-the-new-android-multidex-support-library을 당신은 링크가있다 multidex 지원 –
오류 메시지에서 바로 그것을 따르고 64k 메소드 제한이 무엇인지 알아보십시오. Multidex는 여러분이보고 있어야 할 첫 번째 해결책이 아니며 프로젝트의 종속성을 검토하고 사용되지 않는 솔루션은 제거합니다. – Adnan
을 추가해야 – Egor