尝试在模拟器上运行程序时,出现以下错误:



Device connected: emulator-5554

Device is online: emulator-5554

Target device: avd1 [emulator-5554]
Uploading file

local path: C:\Users\peter\AndroidStudioProjects\MyApplicationProject\MyApplication\build\apk\MyApplication-debug-unaligned.apk

remote path: /data/local/tmp/com.bat.myapplication
Installing com.bat.myapplication

DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.bat.myapplication"


Error: Could not access the Package Manager.  Is the system running?


有任何想法吗?我的路径,javahome等似乎正确。

最佳答案

只需等待模拟器完全加载,一旦完成,即可运行应用程序。

关于android - android studio-无法访问包管理器,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20726368/

10-10 09:25