We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在ViewBindUtil.kt文件中的 withGenericBindingClass 方法, 抛出异常: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
混淆后第三次的数组中只有一个元素,希望能帮忙提供一下解决方案,谢谢! return block.invoke(genericSuperclass.actualTypeArguments[1] as Class<VB>)
return block.invoke(genericSuperclass.actualTypeArguments[1] as Class<VB>)
这是正常运行的日志,打印的数组 actualTypeArguments
这是混淆后崩溃的日志
The text was updated successfully, but these errors were encountered:
给使用viewBinding和viewModel的module混淆文件里加上以下规则可解决
################ ViewBinding & DataBinding & ViewModel ############### -keep class * extends androidx.lifecycle.ViewModel{*;} -keep public interface androidx.viewbinding.ViewBinding -keep class * implements androidx.viewbinding.ViewBinding{*;} -keepclassmembers class * implements androidx.viewbinding.ViewBinding { public static * inflate(android.view.LayoutInflater); public static * inflate(android.view.LayoutInflater, android.view.ViewGroup, boolean); public static * bind(android.view.View); }
Sorry, something went wrong.
No branches or pull requests
在ViewBindUtil.kt文件中的 withGenericBindingClass 方法, 抛出异常: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
混淆后第三次的数组中只有一个元素,希望能帮忙提供一下解决方案,谢谢!
return block.invoke(genericSuperclass.actualTypeArguments[1] as Class<VB>)
这是正常运行的日志,打印的数组 actualTypeArguments
这是混淆后崩溃的日志
The text was updated successfully, but these errors were encountered: