Android Studio 返回错误“安装失败,原因是:‘cmd package install-create...’”

发布于 2025-01-12 10:45:11 字数 752 浏览 2 评论 0原文

我正在 Android Studio 中开发 Android 应用程序。

将 Android Studio 更新到 Bumblebee 2021.1.1 Patch 2 后,它已停止工作。

Android Studio Bumblebee 2021.1.1 补丁 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.

Android Studio Bumblebee 2021.1.1 Patch 2

Now I get the following error:

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ペ泪落弦音 2025-01-19 10:45:11

问题很可能出在 Android Studio 中的 Android 模拟器上。

如果您对 Android 模拟器进行冷重启,它很可能会解决您的问题。

  1. 工具打开Android Studio设备管理器 -> 设备管理器

  2. 如果 Android 模拟器仍在运行,请关闭它。
    关闭 Android 模拟器

  3. 单击位于设备管理器右侧的 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.

  1. Open the Android Studio Device Manager from Tools -> Device Manager.

  2. Close the Android Emulator if still running.
    Close Android Emulator

  3. Click on the Android Emulator's Device Menu located on the right hand side in the Device Mananger and Choose Cold Boot Now.
    Device Menu

Now, try to run the app again...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文