Skip to content
New issue

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

tools7.1.1开启混淆后崩溃 #43

Closed
ccominghome opened this issue Feb 23, 2022 · 6 comments
Closed

tools7.1.1开启混淆后崩溃 #43

ccominghome opened this issue Feb 23, 2022 · 6 comments

Comments

@ccominghome
Copy link

com.android.tools.build:gradle 7.1.1 开启混淆后崩溃,libcore.reflect.TypeVariableImpl cannot be cast to java.lang.Class

@DylanCaiCoding
Copy link
Owner

我建个项目测了 7.1.1 和 7.2 都能正常运行哦

@ccominghome
Copy link
Author

image

image

image

image

image

kotlin用的哪个版本,我在demo上这样改是可以复现的

@ccominghome
Copy link
Author

我建个项目测了 7.1.1 和 7.2 都能正常运行哦

image

报这几个错

@DylanCaiCoding
Copy link
Owner

感谢测试反馈,我在 Demo 上测了是适配器内敛的问题,其它反射都是正常的。出问题的只是下面的用法,你是不是在项目这么用了?

private val adapter = simpleStringListAdapter<ItemFooBinding> {
  textView.text = it
}

项目代码已修改,你升到 7.1.1 应该能正常运行 Demo 了。没别的问题话我明天发个版修复该问题。

@DylanCaiCoding
Copy link
Owner

已发 2.0.2 版本修复该问题

@ccominghome
Copy link
Author

感谢测试反馈,我在 Demo 上测了是适配器内敛的问题,其它反射都是正常的。出问题的只是下面的用法,你是不是在项目这么用了?

private val adapter = simpleStringListAdapter<ItemFooBinding> {
  textView.text = it
}

项目代码已修改,你升到 7.1.1 应该能正常运行 Demo 了。没别的问题话我明天发个版修复该问题。

排查到了,不是因为这个,项目中使用了hilt,升级到2.41就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants