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
Post a Comment