使用自己写的内容提供器时,SecurityException: Permission Denial

zcnc2012 2016-01-20 10:22:08
如题,异常如下:
java.lang.SecurityException: Permission Denial: opening provider com.example.hellosqdatabaselite.DatabaseProvider from ProcessRecord{269c8c78 8325:com.example.providertest/u0a103} (pid=8325, uid=10103) that is not exported from uid 10114

在内容提供器中做了注册的
<provider
android:name="com.example.hellosqdatabaselite.DatabaseProvider"
android:authorities="com.example.hellosqdatabaselite.provider"
android:exported = "true" >
</provider>

然后在另一个程序中试用时,出现异常,如帖子开头部分那样的提示



...全文
287 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
scxtzcnc 2016-01-28
  • 打赏
  • 举报
回复
没看出来什么问题,重启下电脑
zcnc2012 2016-01-21
  • 打赏
  • 举报
回复
管理员怎么老是删帖啊,别人的回复又看不见了

80,350

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧