android - Unable to build apk -


i working on current location tracking when trying build apk showing errors while building apk.i not getting problem.

error:the number of method references in .dex file cannot exceed 64k. learn how resolve issue @ https://developer.android.com/tools/building/multidex.html

error:execution failed 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_101\bin\java.exe'' finished non-zero exit value 2

in build.gradle add line , try again:

multidexenabled true


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -