试图运行Android应用程序时,模拟器的屏幕挂起 [英] Emulator screen hangs when trying to run android application

查看:151
本文介绍了试图运行Android应用程序时,模拟器的屏幕挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想的最后2天,但找不到任何solution.My模拟器的屏幕挂起尝试运行并显示错误消息的Andr​​oid应用程序,如下图所示错误日志时:

I am trying for last 2 days but can not find any solution.My emulator screen hangs when trying to run android application with error message in error log as below:

No command output when running: 'am start -n com.ss.hello/com.ss.hello.MainActivity -a       
android.intent.action.MAIN -c 

异常堆栈跟踪:

Exception stack trace:

com.android.ddmlib.ShellCommandUnresponsiveException
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:408)
at com.android.ddmlib.Device.executeShellCommand(Device.java:435)
at com.android.ide.eclipse.adt.internal.launch.ActivityLaunchAction.doLaunchAction(ActivityLaunchAction.java:67)
at com.android.ide.eclipse.adt.internal.launch.ActivityLaunchAction.doLaunchAction(ActivityLaunchAction.java:109)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.doLaunchAction(AndroidLaunchController.java:1277)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.doLaunchAction(AndroidLaunchController.java:1289)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launchApp(AndroidLaunchController.java:1261)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.simpleLaunch(AndroidLaunchController.java:906)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.continueLaunch(AndroidLaunchController.java:748)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch(AndroidLaunchController.java:409)
at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch(LaunchConfigDelegate.java:322)
at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(LaunchConfigDelegate.java:238)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:855)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:704)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1047)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1251)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

会话数据:

eclipse.buildId=v22.0.1-685705
java.version=1.7.0_21
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product com.android.ide.eclipse.adt.package.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product    com.android.ide.eclipse.adt.package.product

控制台输出是:

Console output is :

[2013-06-16 13:51:02 - Hello] ------------------------------
[2013-06-16 13:51:02 - Hello] Android Launch!
[2013-06-16 13:51:02 - Hello] adb is running normally.
[2013-06-16 13:51:02 - Hello] Performing com.ss.hello.MainActivity activity launch
[2013-06-16 13:51:02 - Hello] Automatic Target Mode: Preferred AVD 'MY_AVD' is available on emulator 'emulator-5554'
[2013-06-16 13:51:02 - Hello] Uploading Hello.apk onto device 'emulator-5554'
[2013-06-16 13:51:04 - Hello] Installing Hello.apk...
[2013-06-16 13:51:30 - Hello] Success!
[2013-06-16 13:51:30 - Hello] Starting activity com.ss.hello.MainActivity on device emulator-5554

从happens.It只是挂。笔者等待1-2 hr.but没有这一点没有什么happen.Tried清理项目,删除项目,检查更新,等...没有什么工作。

From this point nothing happens.It just hang on.I wait for 1-2 hr.but nothing happen.Tried to clean project,delete project,check for updates,etc...nothing works.

我运行简单的小application.It没有错误,也是我分别设定最低和目标SDK版本为10和17。我的AVD的目标是17。

I am running simplest and small application.It has no error and also i set minimum and target SDK version as 10 and 17 respectively. My AVD's target is 17.

什么是解决方案呢?

推荐答案

晚来回答,但我认为这将有助于..

Late to answer but I think this will help..

  • 首先什么是你的电脑的配置? ,多少内存? b'coz高设置的API级别,更多的处理时间会 采取模拟器..
  • 如果您有好的配置的PC,那么所提到的很多,你 应该从快照擦掉AVD并取消加载用户数据和 那么试试这个..
  • 还有习题,删除AVD并重新创建......
  • 不过的概率,然后尝试 Android系统的x86 而不是armeable 模拟器。 Android的x86的则多为快。
  • 您日食更新,正如你所说,然后尝试选择了86 模拟器.. 此处是指 ..
  • 尝试重新启动Eclipse作为最后的手段...:P
  • First and foremost what is your PC's configuration?? , how much RAM?? b'coz higher the API level you set , more processing time will be taken by emulator..
  • If you have good configuration PC, then as mentioned by many, you should Wipe user data from AVD and uncheck load from snapshot and then give this a try..
  • Still prob, delete the AVD and recreate...
  • Still prob, then try Android x86 instead of armeable simulators. Android x86 are much more faster ..
  • Your eclipse is updated as you mentioned then try opting for x86 emulators.. Refer here..
  • Try restarting Eclipse as a last resort... :P

开发一个应用程序一般是有针对性的设备,所以如果可能的话在实际设备本身运行和测试。

Developing an application is generally for a targeted devices, so if possible run and test on real device itself.

希望这有助于...

这篇关于试图运行Android应用程序时,模拟器的屏幕挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆