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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -