运行时,没有命令的输出:'我开始-n错误 [英] No command output when running: 'am start -n Error

查看:223
本文介绍了运行时,没有命令的输出:'我开始-n错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Eclipse中运行我的应用程序,然后点击一个按钮来启动一个新的活动我的应用程序强制关闭,我得到这个错误:

When I run my application in eclipse and click on a button to start a new Activity my application force closes and I get this error:

null
Error
Sat Apr 23 19:53:21 CDT 2011
No command output when running: 'am start -n com.example.lostalarmclock/com.example.lostalarmclock.LostAlarmClock -a android.intent.action.MAIN -c android.intent.category.LAUNCHER' on device emulator-5554

com.android.ddmlib.ShellCommandUnresponsiveException
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:408)
at com.android.ddmlib.Device.executeShellCommand(Device.java:276)
at com.android.ide.eclipse.adt.internal.launch.ActivityLaunchAction.doLaunchAction(ActivityLaunchAction.java:74)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launchApp(AndroidLaunchController.java:1146)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.clientChanged(AndroidLaunchController.java:1489)
at com.android.ddmlib.AndroidDebugBridge.clientChanged(AndroidDebugBridge.java:868)
at com.android.ddmlib.Device.update(Device.java:398)
at com.android.ddmlib.Client.update(Client.java:835)
at com.android.ddmlib.HandleAppName.handleAPNM(HandleAppName.java:90)
at com.android.ddmlib.HandleAppName.handleChunk(HandleAppName.java:64)
at com.android.ddmlib.MonitorThread.callHandler(MonitorThread.java:414)
at com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:322)
at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)

我该如何解决这个问题?

How can I fix this?

推荐答案

此错误杀了我好几个小时......最后下面的步骤帮助。让我分享让一些人能够受益...

This error killed my many hours... Finally below steps helped.. Let me share so that some one can benefited...

在Eclipse中通过以下步骤增加亚行连接超时

In eclipse Increase the ADB connection timeout by following below steps

窗口 - > preferences

选择的Andr​​iod - > DDMS 从左侧面板

增加值 ADB连接超时(毫秒)

这篇关于运行时,没有命令的输出:'我开始-n错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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