简体   繁体   English

在eclipse中调试时,App不会出现在物理设备中

[英]App won't show up in physical device when debugging in eclipse

This may be a silly question, but it's starting to getting on my nerves. 这可能是一个愚蠢的问题,但它开始让我感到紧张。

I develop with the regular ADT in eclipse, and use my Motorola Atrix 2 MB865 in 4.0.4 to test. 我在eclipse中使用常规ADT开发,并使用4.0.4中的Motorola Atrix 2 MB865进行测试。

I have all due drivers, and eclipse recognizes the phone perfectly, and most of the times works as it should. 我有所有应有的驱动程序,eclipse可以完美地识别手机,并且大部分时间都可以正常工作。 But lately when I hit "Run" in eclipse, it shows in the bottom right of eclipse "Launching app ..." and it says 100%, but it never opens it. 但是最近当我在eclipse中点击“Run”时,它显示在eclipse“启动应用程序......”的右下角,它表示100%,但它从未打开它。

Looking at the console shows 看着控制台显示

[2013-07-24 00:10:37 - Moveo_Android] ------------------------------
[2013-07-24 00:10:37 - Moveo_Android] Android Launch!
[2013-07-24 00:10:37 - Moveo_Android] adb is running normally.
[2013-07-24 00:10:37 - Moveo_Android] Performing co.aktio.moveo.android.SplashActivity activity launch
[2013-07-24 00:10:42 - Moveo_Android] Uploading Moveo_Android.apk onto device 'XXXXXXXXXXXXXXXXXX'
[2013-07-24 00:10:43 - Moveo_Android] Installing Moveo_Android.apk...
[2013-07-24 00:11:06 - Moveo_Android] Success!
[2013-07-24 00:11:08 - Moveo_Android] Starting activity co.aktio.moveo.android.SplashActivity on device XXXXXXXXXXXXXXX

But problem is PHONE NEVER START THE ACTIVITY!!! 但问题是电话永远不会开始活动!

So I have to dig in the menu for the app, and open it from there. 所以我必须在应用程序的菜单中挖掘,然后从那里打开它。

Sometimes I have to hit "Run" 3 or 4 times in a row to make it start. 有时我必须连续打3次或4次“Run”才能启动它。

Just to be clear. 只是为了清楚。 Eclipse DOES recognize my phone, installs the app perfectly, and does the Logcat as it should, what bothers me is that app won't start when I hit "Run" from eclipse, or at least not in 80% of the times. Eclipse能够识别我的手机,完美地安装应用程序,并按原样安装Logcat,困扰我的是,当我从eclipse点击“Run”时,或者至少在80%的时间内没有启动应用程序。

May be something in settings or some file I messed up? 可能是设置中的东西或某些我搞砸了的文件?

In your run configuration dialog screen,Ist in android tab choose launch default activity for launch action and next choose common tab in this choose Run check box and run your application 在运行配置对话框屏幕中,我在android选项卡中选择启动默认活动以启动操作,然后在此选择常用选项卡中选择运行复选框并运行您的应用程序

still not working Try it after uninstall your application and restart your device and run it for the same Keep your Run check box checked It may work. 仍然无法正常工作在卸载您的应用程序并重新启动设备并运行它之后尝试保持运行复选框它可能会起作用。

Goto your cmd line and type, 转到您的cmd行并输入,

adb kill-server

after that start your server by 之后启动服务器

 adb start-server

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM