WEB开发网
开发学院手机开发Android 开发 在 Android 模拟器上安装和卸载 APK 包的方法 阅读

在 Android 模拟器上安装和卸载 APK 包的方法

 2010-03-18 16:26:00 来源:WEB开发网   
核心提示:adb install [-l] [-r]<file> - push this package file to the device and install it('-l' means forward-lock the app) ('-r' means reinstall t

adb install [-l] [-r]<file> - push this package file to the device and install it

('-l' means forward-lock the app) ('-r' means reinstall the app, keeping its data)

adb uninstall [-k] - remove this app package from the device

('-k' means keep the data and cache directories)

安装: 必要时 filename可以是完整的路径

adb install filename.apk

D:android-sdk ools>adb install filename.apk

* daemon not running. starting it now *

* daemon started successfully *

347 KB/s (111196 bytes in 0.312s)

pkg: /data/local/tmp/filename.apk

Success

卸载:

adb uninstall filename.apk(用这个命令总是失败,没有提示信息,不知道是哪里出了问题)

或者

adb shell rm data/app/filename.apk

Tags:Android 模拟器

编辑录入:coldstar [复制链接] [打 印]
赞助商链接