ClassNotFoundException for a ContentProvider

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

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



        
6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 02:27

    The answers regarding proguard are incorrect. This would cause an easily reproducible error on every phone, every time, because the ContentProvider class would be completely missing. The developer clearly states that they cannot reproduce the error, meaning that the ContentProvider class is present but for some reason is not being found on one of their user's phones.

    I have the same crash reported in the market for my app. The stack traces look identical, and the error is occurring at installProvider. I have about 15 test phones in my office and none of them can reproduce this problem. Any other ideas would be appreciated.

    Fully qualified names in the manifest are only necessary if your java package names are not the same as your android package name. If a fully qualified name is not specified, the OS will automatically prepend the android package name to the class name specified in the manifest.

提交回复
热议问题