You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: java.lang.RuntimeException: javaClass.superclass must not be null
at na4.z(com.google.android.gms:play-services-mlkit-barcode-scanning@@18.0.0:10)
at com.devbase.presentation.viewbinding.DevActivity.onCreate(DevActivity.kt:3)
at android.app.Activity.performCreate(Activity.java:7802)
at android.app.Activity.performCreate(Activity.java:7791)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
Hi, not sure if you follow this proguard rule already?
First of all, BindingExtension using refelction a lot to link many things internally in order to provide simple usage. To prevent having trouble with proguard, please remember to exclude ViewBinding related method in your proguard-rules file like this:
-keepclassmembers class * implements androidx.viewbinding.ViewBinding {
public static ** inflate(...);
}
If it works without proguard means there's something in proguard affect the binding process.
May you describe more about your class hierarchy like is DevActivity inherit from BindingActivity directly or what's the different.
So I'm getting this error when enabling proguard:
I deduce because of this.
When proguard is disabled, all is running well.
Thanks in advance.
The text was updated successfully, but these errors were encountered: