Android Studio模拟器:"无法访问软件包管理器。"和" AdbCommandRejectedException:device' emulator-5556'找不到"

时间:2016-01-31 07:52:04

标签: java android

我在Android Studio中遇到了模拟器问题。我使用了ARM Systems Image的版本。

当我启动应用程序时,此错误进入底部的run-app控制台:

Target device: Nexus_S_API_23_2_ARM [emulator-5556]
Installing APK:C:\Users\Martin\AndroidStudioProjects\MyApplication4\app\build\outputs\apk\app-debug.apk
Uploading file to: /data/local/tmp/com.example.martin.myapplication.app
Installing com.example.martin.myapplication.app
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.martin.myapplication.app"
Error: Could not access the Package Manager.  Is the system running?

DEVICE SHELL COMMAND: pm uninstall com.example.martin.myapplication.app
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.martin.myapplication.app"
com.android.ddmlib.AdbCommandRejectedException: device 'emulator-5556' not found

1 个答案:

答案 0 :(得分:1)

我建议你使用Genymotion模拟器。与Android studio提供的模拟器相比,它速度更快。搜索Genymotion。真的很棒