ClassNotFoundException for a ContentProvider

后端 未结 6 1988
情深已故
情深已故 2021-01-02 01:53

I have a ContentProvider class and is declared in AndroidMenifest.xml like this:



        
6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-02 02:09

    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)

提交回复
热议问题