android - Exception while running app below Lollipop devices -


this question has answer here:

my app running fine on lollipop devices. when try run app on below lollipop devices giving error everytime.

the error given below:

error:the number of method references in .dex file cannot exceed 64k. :app:transformclasseswithdexfordebug failed error:execution failed task ':app:transformclasseswithdexfordebug'.

my gradle file below:

defaultconfig {     applicationid "com.ielts.touchstone.touchstone"     minsdkversion 15     targetsdkversion 23     versioncode 1     versionname "1.0.4" } buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'     } } 

try adding multidexenabled true app build.gradle file.

 defaultconfig {     multidexenabled true } 

also , clean project first.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -