android - Exception while running app below Lollipop devices -
this question has answer here:
- android multidex runtimeexception 3 answers
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
Post a Comment