Android 安装错误:未知失败(安卓模拟器)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22472620/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 06:01:04  来源:igfitidea点击:

Installing error: Unkown failure (android emulator)

androideclipseemulation

提问by user2896762

so ive been working on this app for a proyect, and my emulators have been working fine, up until earlier today, its been 6 hours or so trying to fix this and there is no way to fix it. Ived erased eclipse and reinstalled it, reinstall android sdk,adt. everything and i keep getting the same messege when trying to run my android application.

所以我一直在为一个项目开发这个应用程序,我的模拟器一直工作正常,直到今天早些时候,已经有 6 个小时左右的时间试图解决这个问题,但没有办法解决它。我已经删除了eclipse并重新安装了它,重新安装了android sdk,adt。一切,当我尝试运行我的 android 应用程序时,我一直收到相同的消息。

[2014-03-18 03:02:56 - Contact_List] Android Launch!
[2014-03-18 03:02:56 - Contact_List] adb is running normally.
[2014-03-18 03:02:56 - Contact_List] Performing com.example.contact_list.MainActivity   activity launch
[2014-03-18 03:02:56 - Contact_List] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'tester'
[2014-03-18 03:02:56 - Contact_List] Uploading Contact_List.apk onto device 'emulator-5554'
[2014-03-18 03:02:56 - Contact_List] Installing Contact_List.apk...
[2014-03-18 03:02:59 - Contact_List] Installation error: Unknown failure
[2014-03-18 03:02:59 - Contact_List] Please check logcat output for more details.
[2014-03-18 03:02:59 - Contact_List] Launch canceled!

on top of that everytime I open the AVD on eclipse it wont let me create a virtual device, I have to go straight to the adt folder and open the AVD.exe.

最重要的是,每次我在 Eclipse 上打开 AVD 时,它都不会让我创建虚拟设备,我必须直接转到 adt 文件夹并打开 AVD.exe。

any way to fix this? is it the new android adt version 22.6? because it all happend after my eclipse did some updates. I also tried reverting the updates and it didnt work.

有任何解决这个问题的方法吗?是新的 android adt 版本 22.6 吗?因为这一切都发生在我的日食做了一些更新之后。我也尝试恢复更新,但没有奏效。

回答by mirroroftruth

ADT version 22.6.3 java compiler 1.7 I had same problem. But I solved it. In my case use same device for future launcheswas checked. which try to run on previous emulator. So Go To Run Configuration->Target->uncheck use same device for future launchesif you want check Always prompt to pick deviceso that you get choice.

ADT 版本 22.6.3 java 编译器 1.7 我有同样的问题。但是我解决了。在我的情况下 use same device for future launches被检查。尝试在以前的模拟器上运行。所以,Run Configuration->Target->uncheck use same device for future launches如果你愿意check Always prompt to pick device,就去吧,这样你就有了选择。

here is console where both problem and solution is here

这是控制台,问题和解决方案都在这里

[2014-06-08 16:51:14 - IMS_RMS] ------------------------------
[2014-06-08 16:51:15 - IMS_RMS] Android Launch!
[2014-06-08 16:51:15 - IMS_RMS] adb is running normally.
[2014-06-08 16:51:15 - IMS_RMS] Performing com.example.ims_rms.Splash activity launch
[2014-06-08 16:51:18 - IMS_RMS] Uploading IMS_RMS.apk onto device 'emulator-5554'
[2014-06-08 16:51:20 - IMS_RMS] Installing IMS_RMS.apk...
[2014-06-08 16:51:23 - IMS_RMS] Installation error: Unknown failure
[2014-06-08 16:51:23 - IMS_RMS] Please check logcat output for more details.
[2014-06-08 16:51:24 - IMS_RMS] Launch canceled!
[2014-06-08 16:53:49 - IMS_RMS] ------------------------------
[2014-06-08 16:53:49 - IMS_RMS] Android Launch!
[2014-06-08 16:53:49 - IMS_RMS] adb is running normally.
[2014-06-08 16:53:49 - IMS_RMS] Performing com.example.ims_rms.Splash activity launch
[2014-06-08 16:53:59 - IMS_RMS] Launch canceled!
[2014-06-08 17:01:28 - IMS_RMS] ------------------------------
[2014-06-08 17:01:28 - IMS_RMS] Android Launch!
[2014-06-08 17:01:28 - IMS_RMS] adb is running normally.
[2014-06-08 17:01:29 - IMS_RMS] Performing com.example.ims_rms.Splash activity launch
[2014-06-08 17:01:44 - IMS_RMS] Uploading IMS_RMS.apk onto device 'emulator-5556'
[2014-06-08 17:01:48 - IMS_RMS] Installing IMS_RMS.apk...
[2014-06-08 17:02:35 - IMS_RMS] Success!
[2014-06-08 17:02:41 - IMS_RMS] Starting activity com.example.ims_rms.Splash on device emulator-5556

回答by sandeep

goto Run as-> run configure->target at the end find a tag "use the same device for future launches" remove the tick of check box. Again run application

goto Run as-> run configure->target 最后找到一个标签“使用相同的设备进行未来启动”删除复选框的勾号。再次运行应用程序

回答by Juneyoung Kang

If You Running In Eclipse, Check Your Settings.

如果您在 Eclipse 中运行,请检查您的设置。

Run Configurations - Common - Select File In Standard Input And Output - Click

运行配置——通用——在标准输入输出中选择文件——点击

Workspace And Choose Your Project.

工作区并选择您的项目。

And Just Click Run.

只需单击运行。