How Do I Uninstall And Re-run An App On A Device Using Android Studio?
Solution 1:
I think this answer is what you're looking for. Basically edit your configuration to perform an uninstall before app launch.
From the Run menu -> Edit Configurations... -> Before Launch -> Add Gradle-aware Make -> ":app:uninstallAll"
Solution 2:
You can execute the gradle task :app:uninstallAll
to uninstall the app. The next time you hit Run
your app will be reinstalled.
Solution 3:
You can skip the force stop and uninstall step by just hitting run
again. Android Studio should prompt you which device to run on and there you can select your connected device.
It will close the app and re-run your changed version.
Solution 4:
I always just hit the "debug" icon (the bug icon) and from the debug tab (at the bottom of your screen), you can stop running the app by clicking on the stop button. No need to uninstall/reinstall app. When you're done, you can do a release build of the apk.
Post a Comment for "How Do I Uninstall And Re-run An App On A Device Using Android Studio?"