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.4k stars 805 forks source link

类中插入ChangeQuickRedirect变量时。PUBLIC|STATIC这样的访问符组合会插入失败.没有Static则可以 #392

Closed weiyixiong closed 4 years ago

weiyixiong commented 4 years ago

我发现在类中插入ChangeQuickRedirect变量时。PUBLIC|STATIC这样的访问符组合会插入失败

weiyixiong commented 4 years ago

看了一下。突然发现java代码也插入失败。。我再研究研究

weiyixiong commented 4 years ago

找到原因了。是R8的问题,估计是压缩的优化,导致变量的插入未同步到最终代码。但是方法的插入却是成功的。