问题描述
- eclipse安卓真机调试出现问题
-
用eclipse新建自动生成的HELLOWORLD的程序 无法导入手机安装过程如下:
[2015-07-19 15:06:32 - helloworld] ------------------------------
[2015-07-19 15:06:32 - helloworld] Android Launch!
[2015-07-19 15:06:32 - helloworld] adb is running normally.
[2015-07-19 15:06:32 - helloworld] Performing com.example.helloworld.MainActivity activity launch
[2015-07-19 15:06:35 - helloworld] Uploading helloworld.apk onto device '4103bb2367bb3000'
[2015-07-19 15:06:35 - helloworld] Installing helloworld.apk...
[2015-07-19 15:06:38 - helloworld] Success!
[2015-07-19 15:06:38 - helloworld] Starting activity com.example.helloworld.MainActivity on device 4103bb2367bb3000
[2015-07-19 15:06:39 - helloworld] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2015-07-19 15:06:42 - helloworld] Starting activity com.example.helloworld.MainActivity on device 4103bb2367bb3000
[2015-07-19 15:06:42 - helloworld] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2015-07-19 15:06:45 - helloworld] Starting activity com.example.helloworld.MainActivity on device 4103bb2367bb3000
[2015-07-19 15:06:46 - helloworld] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2015-07-19 15:06:49 - helloworld] Starting activity com.example.helloworld.MainActivity on device 4103bb2367bb3000
[2015-07-19 15:06:49 - helloworld] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2015-07-19 15:06:52 - helloworld] Starting activity com.example.helloworld.MainActivity on device 4103bb2367bb3000[2015-07-19 15:06:53 - helloworld] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.helloworld/.MainActivity }
[2015-07-19 15:06:53 - helloworld] ActivityManager: Error type 3
[2015-07-19 15:06:53 - helloworld] ActivityManager: Error: Activity class {com.example.helloworld/com.example.helloworld.MainActivity} does not exist.
粗体显示为红色
有人知道为什么么 我一个朋友的手机可以安装
解决方案
LZ代码发上来,看看。
解决方案二:
楼主~~~你解决了吗~~我也是这个情况。这决对不是项目本身的原因。。。。我也是换个手机就行了。。。求原因
解决方案三:
我已经解决,我帮手机管家卸了就可以了。应该是什么权限被修改
解决方案四:
{com.android.map_navigation/com.android.map_navigation.MainActivity} does not exist.
这不很明显了么。
LZ是怎么启动Activity的,Intent.action还是直接setClass,Manifest中声明了吗?
当然,如果你确认有,就请:删掉project,再重新import,选择已存在project选项,然后再运行就可以了
还有:
看看AndroidManifest.xml文件中 是不是在添加子元素时无意多添加了一个标签。而且这个标签写到了原来的application的前面,致使程序解析的时候没有找到相应的activity 出现了如上错误。
解决方法:
仔细观察有没有多漏写,标签里面有没有要启动的activity