您的位置:首页 > 编程语言 > Java开发

New package not yet registered with the system

2016-07-23 15:15 507 查看
今天遇到了一个问题。。项目跑在eclipse上运行报错

New package not yet registered with the system

就是不停的:

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: Error type 3
[2015-07-19 15:06:53 - helloworld] ActivityManager: Error: Activity class {com.example.helloworld/com.example.helloworld.MainActivity} does not exist.

[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 }

 

由于错误没有截下来,这里用一下人家的报错,跟我一样一样的。

网上很多人都说clean一下,然而对我并没有什么用。

而且新建项目运行还是同样的问题,换了workspace还是同样的问题,重启电脑和重启手机也没有解决。

最后换了一只手机,可以运行,猜测是手机上软件没有卸载干净的问题。之前我长按卸载没有解决问题。

解决方式:在应用管理里卸载软件。再不行的话重置手机。。反正我是测试机。。。

看到网上还有其他不用重置的解决方式:
http://vjson.com/wordpress/android%E5%BC%80%E5%8F%91%E4%B9%8B%E7%96%91%E9%9A%BE%E6%9D%82%E7%97%87.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息