gpt4 book ai didi

java - Android Studio模拟器: "Could not access the Package Manager." and "AdbCommandRejectedException: device ' emulator-555 6' not found"

转载 作者:行者123 更新时间:2023-12-01 10:30:38 24 4
gpt4 key购买 nike

我在 Android Studio 中遇到模拟器问题。我采用了带有 ARM 系统镜像的版本。

当我启动应用程序时,底部的运行应用程序控制台出现此错误:

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

最佳答案

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

关于java - Android Studio模拟器: "Could not access the Package Manager." and "AdbCommandRejectedException: device ' emulator-555 6' not found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35111562/

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