![](/img/trans.png)
[英]How can I automatically uninstall the app from the emulator after running the Android unit test
[英]How do I uninstall an existing package from the Android emulator
c:\Android\android-sdk\platform-tools>adb install foo.apk (Platform 3.1)
137 KB/s (14948 bytes in 0.106s)
pkg: /data/local/tmp/foo.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
adb uninstall
查找 package 名稱,但不確定它是什么? 如何找到此信息以便我可以卸載。
亞行卸載應該工作。 要獲取已安裝的軟件包列表:
adb shell pm list packages
設置->應用程序->管理應用程序->
您還可以使用:
adb install -r foo.apk
-r
將允許您更新/重新安裝應用程序。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.