【发布时间】:2014-02-26 21:24:49
【问题描述】:
我安装了 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?
如何解决这个错误?
【问题讨论】:
-
@pyus13 我在问题中添加了一些细节。估计是安装有些麻烦……
-
你可以试试这个:首先使用 AVD 管理器启动模拟器,让它完全启动。看到主屏幕后尝试安装应用程序,如果您仍然遇到同样的问题,请告诉我?也尝试从命令行而不是 Studio 安装应用程序并检查结果。
-
@pyus13 ` 也尝试从命令行而不是 Studio 安装应用程序`你能解释更多吗?
-
@pyus13 我认为您链接到的其他 Stackoverflow 问题与此问题无关。至少错误信息大不相同。
标签: android android-studio runtime-error emulation