Failed to find provider null for user 0; expected to find a valid ContentProvider for this authority

Android 8.0以上的手机,如果集成了ActiveAndroid,会遇到这个错误。
 
解决方式
找到项目下面的AndroidManifest.xml文件,在application结点下面添加以下代码:
<provider
    android:name="com.activeandroid.content.ContentProvider"
    android:authorities="<your.package.name>"
    android:enabled="true"
    android:exported="false">
</provider>

 

posted @ 2018-09-12 10:32  冬天的菠菜  阅读(2869)  评论(0编辑  收藏  举报