Meituan-Dianping / Robust

Robust is an Android HotFix solution with high compatibility and high stability. Robust can fix bugs immediately without a reboot.
Apache License 2.0
4.42k stars 807 forks source link

兼容最新的gradle 3.6及以上版本 #394

Closed weiyixiong closed 4 years ago

weiyixiong commented 4 years ago

gradle 3.6及以上版本默认启用R8.会将插入的ChangeQuickRedirect变量优化掉。需要在混淆文件中加入 -keepclassmembers class *{ public static com.meituan.robust.ChangeQuickRedirect ; } 以保证热修复功能生效。作者看到在wiki中加一下:grin:

zhukaiji commented 4 years ago

困扰了一天,确实

hedex commented 4 years ago

感谢反馈

hedex commented 4 years ago

已解决