I have a ContentProvider class and is declared in AndroidMenifest.xml like this:
This is an old thread, and the OP didn't have the same ContentProvider declaration as me, but I had the same exact error, so I want to share my findings, in case it helps anyone.
For me, what caused the problem was that the ContentProvider declaration in the AndroidManifest.xml had an exported
attribute set to true
:
android:exported="true"
Removing it fixed the problem for me. (I didn't really need it)