ClassNotFoundException for a ContentProvider

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

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



        
6条回答
  •  时光取名叫无心
    2021-01-02 02:12

    Proguard excludes all inherited content providers by default with this line (make sure it's in your cfg):

    -keep public class * extends android.content.ContentProvider
    

    If you have any additional inheritance you should exclude it as well or exclude your specific Content Provider class, for example:

    -keep public class org.iii.romulus.meridian.MediaSearchProvider
    

提交回复
热议问题