请将对应没有加入混淆的代码加入至proguard文件中
可能引起的现象:SophixStub热更新初始化失败java.lang.RuntimeException: abandon initialization: installProviders
Unable to create application com.xxx.xxx.common.SophixStubApplication: java.lang.RuntimeException: abandon initialization: installProviders
例如:
Caused by: java.lang.NoSuchMethodError: No interface method o(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; in class Landroid/content/res/XmlResourceParser; or its super classes (declaration of 'android.content.res.XmlResourceParser' appears in /system/framework/framework.jar)
at androidx.core.content.FileProvider.parsePathStrategy(FileProvider.java:8)
at androidx.core.content.FileProvider.getPathStrategy(FileProvider.java:3)
at androidx.core.content.FileProvider.attachInfo(FileProvider.java:4)
请在 proguard-rules.pro 文件中加入:
-keep class org.xmlpull.v1.** { *;}
-dontwarn org.xmlpull.v1.**