Android Studio 返回错误“安装失败,原因是:‘cmd package install-create...’”
我正在 Android Studio 中开发 Android 应用程序。
将 Android Studio 更新到 Bumblebee 2021.1.1 Patch 2 后,它已停止工作。
现在我收到以下错误:
安装失败。
无法安装该应用程序。apk 列表:
[0] 'D:\Filer\Dokument\...\app\build\intermediates\apk\debug\app-debug.apk' 安装失败,原因是:“cmd package install-create -r -t --user current --full --dont-kill -S 4617721”返回错误“未知故障:cmd:找不到服务:包”< br> 重试
无法在所有设备上启动应用程序
有什么想法可以解决这个问题吗?
I'm working on an Android App in Android Studio.
After updating Android Studio to Bumblebee 2021.1.1 Patch 2 it has stopped working.
Now I get the following error:
Installation did not succeed.
The application could not be installed.List of apks:
[0] 'D:\Filer\Dokument\...\app\build\intermediates\apk\debug\app-debug.apk'
Installation failed due to: ''cmd package install-create -r -t --user current --full --dont-kill -S 4617721' returns error 'Unknown failure: cmd: Can't find service: package''
Retry
Failed to launch an application on all devices
Any ideas how to solve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题很可能出在 Android Studio 中的 Android 模拟器上。
如果您对 Android 模拟器进行
冷重启
,它很可能会解决您的问题。从
工具
打开Android Studio设备管理器 ->设备管理器
。如果 Android 模拟器仍在运行,请关闭它。

单击位于设备管理器右侧的 Android 模拟器的设备菜单

▼
,然后选择立即冷启动
。现在,尝试再次运行该应用程序...
The problem is most likely with the Android Emulator in Android Studio.
If you do a
Cold Reboot
of the Android Emulator it will most likely solve your problem.Open the Android Studio Device Manager from
Tools
->Device Manager
.Close the Android Emulator if still running.

Click on the Android Emulator's Device Menu

▼
located on the right hand side in the Device Mananger and ChooseCold Boot Now
.Now, try to run the app again...