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

混淆问题 #15

Open
Forest0924 opened this issue May 9, 2019 · 3 comments
Open

混淆问题 #15

Forest0924 opened this issue May 9, 2019 · 3 comments

Comments

@Forest0924
Copy link

偶然发现一个问题。
layout文件中
android:onClick="@{(v)->presenter.onClick(v)}"
会导致混淆错误。
报错信息的大概意思是无法解析 "@" 字符,这个需要额外的混淆处理么?

@ditclear
Copy link
Owner

ditclear commented May 9, 2019

不用吧,混淆应该不会混淆资源文件吧
另外,能提供错误的截图吗?

@Forest0924
Copy link
Author

不是混淆资源文件,是混淆规则里keep 监听器回调事件时导致的。

@ditclear
Copy link
Owner

ditclear commented May 9, 2019

https://stackoverflow.com/questions/35472130/conflict-between-android-data-binding-and-guava-causes-proguard-error
添加以下代码试试
-dontwarn android.databinding.**
-keep class android.databinding.** { *; }

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