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

第一次补丁成功后,退出页面后重新进来报错了,说是控件找不到,是不是kotlin 没法兼容 #437

Closed sushanqiang closed 3 years ago

sushanqiang commented 3 years ago

异常类型:app运行时异常

手机型号:荣耀6x

手机系统版本: Android 8.0

Robust版本: 0.4.99

Gradle版本:gradle-6.1.1-all.zip 和 com.android.tools.build:gradle:4.0.1

系统:Windows

堆栈/日志: java.lang.NoClassDefFoundError: com.example.myfix.robust.patch.RobustTestActivityInLinePatch

Caused by:java.lang.VerifyError: Verifier rejected class com.example.myfix.robust.patch.RobustTestActivityInLinePatch: android.view.View com.example.myfix.robust.patch.RobustTestActivityInLinePatch._$findCachedViewById(int) failed to verify: android.view.View com.example.myfix.robust.patch.RobustTestActivityInLinePatch.$_findCachedViewById(int): [0x105] returning 'Reference: java.lang.Object', but expected from declaration 'Reference: android.view.View' (declaration of 'com.example.myfix.robust.patch.RobustTestActivityInLinePatch' appears in /data/data/com.example.myfix/cache/yzTempPatch/patch02_temp.jar)

hanswook commented 3 years ago

麻烦问下,你这个问题解决了吗?还是改成其他findviewbyid的方式了