xueerjin 2015-07-19 07:12 采纳率: 0%
浏览 4242

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.

粗体显示为红色

有人知道为什么么 我一个朋友的手机可以安装

  • 写回答

4条回答

  • 91program 博客专家认证 2015-07-19 07:48
    关注

    {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

    评论

报告相同问题?

悬赏问题

  • ¥15 MATLAB动图的问题
  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名