Couldn‘t terminate the existing process for com.hopechart.gallery

本文档记录了解决Android Studio中尝试更新系统应用遇到的权限问题,提供手动卸载重装和为系统应用设置正确Linux权限的方法,适用于开发者调试系统应用行为。

Android studio运行遇到的问题记录一下

  • stack overflow
More likely that you're trying to update already installed app but as it is system app - adb doesn't have proper privileges and can't close already running process. Quick solution - manually uninstall your app, then install it again. One more thing - if you're developing system app - to be sure that you app behaves as expected - you should install it in system apps directory with proper Linux permissions (644 if I'm not mistaken). Under installation I mean just placing apk to system apps directory, granting permissions and rebooting device.

翻译 
您更有可能尝试更新已安装的应用程序,但由于它是系统应用程序 - adb 没有适当的权限并且无法关闭已经运行的进程。 快速解决方案 - 手动卸载您的应用程序,然后重新安装。 还有一件事-如果您正在开发系统应用程序-以确保您的应用程序按预期运行-您应该将其安装在具有适当Linux权限的系统应用程序目录中(如果我没记错的话,644)。 在安装下,我的意思是将 apk 放入系统应用程序目录,授予权限并重新启动设备。

解决方法 :

  • adb uninstall 包名
  • adb reboot
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值