Uninstall Android App Before Each Debug

后端 未结 1 1086
攒了一身酷
攒了一身酷 2020-12-28 10:14

I am developing an Android app using Eclipse 3.7.2 with the Android SDK installed. I was wondering if there is a setting in Eclipse which when launching the debugger will au

相关标签:
1条回答
  • 2020-12-28 10:30
    1. Right Click your Project
    2. Properties
    3. Builder
    4. New
    5. Program
    6. In Name field, type "uninstall" for a name (no quotes needed)
    7. In location, use Browse file system button and target your adb (something like C:\Users\petey\Android\android-sdk\platform-tools\adb.exe)
    8. In arguments, "uninstall your.app.package.goes.here" (no quotes needed)
    9. Hit OK
    10. Select uninstall
    11. Hit the Up button until its on the top

    Now you should be able to debug & run your app and it will uninstall everytime.

    If this is too much and yer on windows Keep a Run dialog open (Start key and r button at same time) and type "adb uninstall your.app.package.goes.here" (no quotes). The run dialog has autocomplete and history to make life easier. You could also do this by terminal or command prompt too. Make sure that platform-tools is in your path tho.

    0 讨论(0)
提交回复
热议问题