gpt4 book ai didi

Linux 中的 Android Studio 错误为“无法访问包管理器”

转载 作者:太空宇宙 更新时间:2023-11-04 04:00:37 24 4
gpt4 key购买 nike

Device connected: emulator-5554
Device is online: emulator-5554
Target device: AVD_for_Nexus_4 [emulator-5554]
Uploading file
local path: /home/verma/AndroidStudioProjects/Icandy1/App/build/apk/App-debug-unaligned.apk
remote path: /data/local/tmp/com.google.icandy1.app
Installing com.google.icandy1.app
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.google.icandy1.app"
Error: Could not access the Package Manager. Is the system running?

我遇到了上述错误。有人可以通过 Android Studio 解决这个问题吗?

最佳答案

这是错误 https://code.google.com/p/android/issues/detail?id=62113 。来自错误报告:

Our theory is that the IDE is trying to install the APK while the emulator is still starting up, before it's ready to have things installed in it. If that theory is correct, we need to have the IDE do better detection of what state the emulator is in and have it wait until it's ready; in the meantime, try working around it by launching the emulator by hand, letting it get to the lockscreen and unlocking it, and then leaving it running while you iteratively build and launch apps from the IDE.

关于Linux 中的 Android Studio 错误为“无法访问包管理器”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23132615/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com