卸载Android应用程序的每个调试前 [英] Uninstall Android App Before Each Debug

查看:124
本文介绍了卸载Android应用程序的每个调试前的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发使用Eclipse 3.7.2安装Android SDK的Andr​​oid应用程序。我想知道是否有在Eclipse中,当启动调试器会自动卸载任何$ P $的设置从设备的应用程序的pviously现有版本?

例如,如果我有一个应用程序开发,每当我做出改变的应用程序,我想彻底从手机中卸载旧的应用程序并安装新的。

解决方案
  1. 右键单击您的项目
  2. 属性
  3. 生成器
  4. 计划
  5. 在名称字段中,键入卸载的名称(不包括引号需要)
  6. 在的位置,使用浏览文件系统按钮和目标的亚洲开发银行(类似于C:\ Users \用户皮蒂\机器人\ Android的SDK \平台工具\ adb.exe)
  7. 在争论,卸载your.app.package.goes.here(不包括引号需要)
  8. 点击确定
  9. 选择卸载
  10. 按向上键,直至其顶部

现在你应该能够调试和放大器;运行你的应用程序,它会卸载每次。

如果这是太多,揭掉在Windows上保持一个运行对话框打开(开始同时键和r按钮),然后键入亚行卸载your.app.package.goes.here(不含引号)。在运行对话框具有自动完成与历史,使生活更轻松。您也可以通过终端做或命令提示符了。确保平台的工具,在您的路径寿。

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 automatically uninstall any previously existing versions of an app from the device?

For example, if I have an app developing, every time I make a change to the app I want to uninstall the old app completely from the phone and install the new one.

解决方案

  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.

这篇关于卸载Android应用程序的每个调试前的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆