android - Toggle between Application for debug build and MultiDexApplication for release build -
one of test phone not able install app adb when application class extending multidex application.
i attempted implement this on build.gradle app application class extending multidexapplication cannot compile.
buildtypes { release { multidexenabled false } debug { multidexenabled true } }
references: 1. https://developer.android.com/studio/build/multidex.html 2. can enable multidex in android debug build only? 3. conditionally inherit class
keep application
class extend multidexapplication
, add line attachbasecontext
if (buildconfig.debug) { multidex.install(this); }
Comments
Post a Comment