我的应用使用ActiveAndroid,对模型进行任何操作时,我只能遇到 Android Oreo问题。
java.lang.SecurityException: Failed to find provider null for user 0; expected to find a valid ContentProvider for this authority
at android.os.Parcel.createException(Parcel.java:1950)
at android.os.Parcel.readException(Parcel.java:1918)
at android.os.Parcel.readException(Parcel.java:1868)
at android.content.IContentService$Stub$Proxy.notifyChange(IContentService.java:812)
at android.content.ContentResolver.notifyChange(ContentResolver.java:2112)
at android.content.ContentResolver.notifyChange(ContentResolver.java:2063)
at android.content.ContentResolver.notifyChange(ContentResolver.java:2033)
at com.activeandroid.query.From.execute(From.java:304)
at com.example.model.FeaturedGallery.saveAll(FeaturedGallery.java:136)
at com.example.api.FeaturedGalleryJob.storeData(FeaturedGalleryJob.java:45)
at com.example.api.ExampleJob.onRun(ExampleJob.java:109)
at com.path.android.jobqueue.BaseJob.safeRun(BaseJob.java:108)
at com.path.android.jobqueue.JobHolder.safeRun(JobHolder.java:60)
at com.path.android.jobqueue.executor.JobConsumerExecutor$JobConsumer.run(JobConsumerExecutor.java:201)
at java.lang.Thread.run(Thread.java:764)
我的应用程序可以在Android AndroidManifest.xml是正确的,我在有关此问题的其他线程中添加了解决方案 有解决方案吗?<provider
android:name=".contentprovider.CustomProvider"
android:enabled="true"
android:exported="false"
android:authorities="@string/authority"/>