IllegalArgumentException: Unknown URL content:// CONTENT

那年仲夏 提交于 2019-11-27 23:16:15

First, move <provider> to be a child of <application>, not <activity>.

Second, change android:exported="true" to android:exported="false", until such time as you secure your ContentProvider. As it stands, once you fix the <provider> element location as noted above, any app can read and write anything in your provider, which is unlikely to be what the user wants.

I have added package name in authorities.that's why I got this issue.I have to add Provider name in authorities.

  <provider
            android:name="LoginContentProvider"
            android:authorities="com.provider.name.team"
            android:exported="false" />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!