android - How can I make Gradle install targets replace a device's app on Lollipop devices like it does on previous versions? -


android's gradle plugin has install targets built in can type following build , install app connected device.

$ gradle installdebug 

i've found, however, lollipop device doesn't have same replacement behavior older releases of android have. instead of replacing installed version, complains app installed, dumps huge stack trace, , quits.

this behavior annoying, makes hard test stuff database version upgrade code if have uninstall older version first.

i can run adb below magic -r flag replace apk workaround, that's not satisfying.

$ adb install -r build/outputs/apk/mycoolapp-debug.apk 

how can make gradle replace installed app fresh apk pre-lollipop devices?

apparently bug in plugin , has been fixed in rc1.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -