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

ActivityManager: java.lang.SecurityException 问题

2011-06-07 12:16 363 查看
最近在调试程序的时候经常出现ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.xxxxx.xxxxx/.ui.xxxxxxx } from null (pid=-1, uid=-1) requires null的问题,困扰我好几天了,一开始只是认为权限的问题,跟了好久一直没有解决。

后来看到:

The java.lang.SecurityException you are seeing is because you may enter two entries pointing to same activity. Remove the second one and you should be good to go.

才发现这个Activity在Manifest文件里写了两份,去掉一份后,终于可以正常运行了。

注:此问题还会引起,在手机端点击程序图标时,会提示程序未安装在手机上。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐