关于 android:Failed to install apk on device ’emulator-5554′: No such file or directory | 珊瑚贝

Failed to install apk on device ’emulator-5554′: No such file or directory


是的,还有其他几个类似这样的问题,我已经尝试了那里的建议,但无济于事。请注意,我在这里尝试运行模拟器,而不是实际设备。

我已将运行配置设置为始终提示选择设备。然后我做 Run as > Android Application,然后选择模拟器,然后等待它(直到出现 AVD 名称)

1
2
3
4
5
6
[HelloWorld] New emulator found: emulator-5554  
[HelloWorld] Waiting for HOME (‘android.process.acore’) to be launched…  
[HelloWorld] ——————————  
[HelloWorld] Android Launch!  
[HelloWorld] adb is running normally.  
[HelloWorld] Performing com.mkyong.android.HelloWorldActivity activity

发射
[HelloWorld] 将 HelloWorld.apk 上传到设备 ’emulator-5554′

然后执行 Run as > Android Application 并选择正在运行的 emulator-5554,它给出了错误:

1
2
3
[HelloWorld] Failed to install HelloWorld.apk on device ’emulator-5554′: No such file or directory
[HelloWorld] com.android.ddmlib.SyncException: No such file or directory
[HelloWorld] Launch canceled!

之后我尝试了以下重复上述步骤:

删除 bin 和 gen 文件夹,然后进行 Clean

我进入 DDMS 并重置 adb。然后 Run as > Android Application 并选择了正在运行的 emulator-5554,结果相同。

将 ADB 连接超时从 5000 毫秒更改为 10000 毫秒
窗口 -> 首选项 -> Android -> DDMS -> ADB 连接超时 (ms)

打开任务管理器,结束名为”adb”的任务,然后重新启动eclipse。然后项目清理。

关闭项目,关闭 Eclipse,然后重新启动 Eclipse 并打开项目

通过 Android Virtual Device Manager > Start > Launch 启动独立于项目的模拟器
这会导致显示模拟器窗口,但不包含任何内容(完全黑色)
另一个窗口说:
启动 AVD 模拟器”
模拟器:警告:打开音频输入失败
它仍然是这样。即使单击”取消”也无济于事。

我进入了 Android Virtual Device Manager > Android Virtual Devices,然后
选择一个设备,编辑。在设备下拉菜单中,如果未选择设备,请选择一个设备内存选项:RAM 768。然后开始 > 启动,模拟器窗口出现。窗口中显示”Android”。LogCat 显示了很多东西,这似乎很重要:

1
2
Failed to connect to host (QemuPipeStream)!!!  
E/EGL_emulation(420): Failed to establish connection with the host

有什么建议吗?

  • 你在使用 Android Studio 吗?


也许检查您是否为模拟器的 API 安装了相关的 SDK?

Windows -> Android SDK 管理器

我在黑暗中开枪。

  • 这实际上是答案。由于版本冲突,我无法安装必要的 SDK。所以我必须获取最新版本的 Eclipse 并添加 ADT 插件。


来源:https://www.codenong.com/29036898/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_8986.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?