如何使用 adb 命令在 Android 模拟器中卸载 APK 文件 [英] How do you uninstall an APK file in the Android emulator using adb command

查看:29
本文介绍了如何使用 adb 命令在 Android 模拟器中卸载 APK 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用adb命令在Android模拟器中卸载APK文件

How do you uninstall an APK file in the Android emulator using adb command

推荐答案

使用此评论

在执行此操作之前,您必须使用此 adb 连接您的模拟器对 connect adb connect your_ipaddress

Before doing this you have to connect your emulator, using this adb comments for connect adb connect your_ipaddress

pm uninstall -k <package_name>

(或)

adb shell pm uninstall *your.package.name*

请查看文档:https://developer.android.com/studio/command-line/adb.html#pm

这篇关于如何使用 adb 命令在 Android 模拟器中卸载 APK 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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