我安装了android studio并尝试运行简单的项目。
但我发现了奇怪的错误信息:
Waiting for device.
/usr/local/idea/android-studio/sdk/tools/emulator -avd Nexus-4-18-xhdpi -netspeed full -netdelay none
emulator: emulator window was out of view and was recentered
Device connected: emulator-5554
Device is online: emulator-5554
Target device: Nexus-4-18-xhdpi [emulator-5554]
Uploading file
local path: /home/nazar/Documents/coursera-android/Examples/HelloAndroid/out/production/HelloAndroid/HelloAndroid.apk
remote path: /data/local/tmp/course.examples.HelloWorld.HelloWorld
Installing course.examples.HelloWorld.HelloWorld
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/course.examples.HelloWorld.HelloWorld"
Error: Could not access the Package Manager. Is the system running?我不明白为什么会发生这种事?
我安装了sdk版本并配置了模拟器。有什么建议吗?
下面是仿真器配置:

更新:
我尝试安装Genymotion设备并使用少量虚拟设备,但被捕获:
Waiting for device.
Target device: genymotion-nexus_4___4_4_2___api_19___768x1280-192.168.56.101:5555
Uploading file
local path: /home/nazar/Documents/coursera-android/Examples/HelloAndroid/out/production/HelloAndroid/HelloAndroid.apk
remote path: /data/local/tmp/course.examples.HelloWorld.HelloWorld
Installing course.examples.HelloWorld.HelloWorld
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/course.examples.HelloWorld.HelloWorld"
WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
Error: Could not access the Package Manager. Is the system running?如何解决此错误?
发布于 2014-03-31 05:56:01
同样的事情现在也发生在我身上。我不知道是否还有其他的方法,但对我来说,下面的方法很有效:
说明:该问题是由于超时造成的。一旦设备启动,Android Studio就可以与他通信。(v 0.5.3)
https://stackoverflow.com/questions/21526565
复制相似问题