How do I uninstall and re-run an app on a device using Android Studio?

前端 未结 4 1114
别跟我提以往
别跟我提以往 2020-12-14 09:54

I am new to Android Studio and I feel that I must be doing something wrong. When running MyApp on an actual device the process goes like this.

  • Edit code.
4条回答
  •  被撕碎了的回忆
    2020-12-14 10:27

    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"

提交回复
热议问题