After migration to AndroidX, exception at start up: java.lang.ClassNotFoundException: “Didn't find class androidx.core.app.CoreComponentFactory”

后端 未结 3 805
半阙折子戏
半阙折子戏 2020-12-30 01:05

After migration to AndroidX i have the following exception at startup:

LoadedApk: Unable to instantiate appComponentFactory
    java.lang.ClassNotFoundExcept         


        
3条回答
  •  醉酒成梦
    2020-12-30 01:28

    Looks CoreComponentFactory class is getting encrypted. Try adding the above class to proguard-rules.

     -keep class androidx.core.app.CoreComponentFactory { *; }
    

    So the CoreComponentFactory won't be the encrypted anymore.

提交回复
热议问题