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

result: true 但是不起作用 #428

Open 217fan opened 3 years ago

217fan commented 3 years ago

异常类型:app运行时异常

手机型号:redmiK20

手机系统版本 miui12.0.3 android 10

Robust版本:0.4.99

Gradle版本:3.6.4

系统:如:Windows

堆栈/日志:

image /robust: patch patch_info_name:com.learningtech.locationapp.robust.PatchesInfoImpl 2020-09-18 18:04:47.343 22792-24290/? D/robust: current path:com.learningtech.locationapp.MainActivity 2020-09-18 18:04:47.343 22792-24290/? D/robust: oldClass :class com.learningtech.locationapp.MainActivity fields 16 2020-09-18 18:04:47.343 22792-24290/? D/robust: current path:com.learningtech.locationapp.MainActivity find:ChangeQuickRedirect com.learningtech.locationapp.robust.MainActivityPatchControl 2020-09-18 18:04:47.343 1656-4480/? D/PackageManager.DexOptimizer: Running dexopt on: /data/user/0/com.learningtech.locationapp/cache/robust/patch_temp.jar pkg=com.learningtech.locationapp isa=[arm64] reason=bg-dexopt dexoptFlags=boot_complete,public,secondary,storage_ce,enable_hidden_api_checks target-filter=extract class-loader-context=null 2020-09-18 18:04:47.344 22792-24290/? D/robust: changeQuickRedirectField set success com.learningtech.locationapp.robust.MainActivityPatchControl 2020-09-18 18:04:47.344 22792-24290/? D/robust: patch finished 2020-09-18 18:04:47.344 22792-24290/? D/RobustCallBack: onPatchApplied result: true 2020-09-18 18:04:47.344 22792-24290/? D/RobustCallBack: onPatchApplied patch: 123 2020-09-18 18:04:47.344 22792-24290/? D/robust: patch LocalPath:/storage/emulated/0/Android/data/com.learningtech.locationapp/files/robust/patch.jar,apply result true 2020-09-18 18:04:47.344 1022-3196/? D/installd: Processing secondary dex path /data/user/0/com.learningtech.locationapp/cache/robust/patch_temp.jar 2020-09-18 18:04:47.469 1022-3196/? D/installd: Processed secondary dex file /data/user/0/com.learningtech.locationapp/cache/robust/patch_temp.jar result=0 2020-09-18 18:04:47.469 1656-4480/? D/PackageManagerServiceInjector: Run dexopt on: /data/user/0/com.learningtech.locationapp/cache/robust/patch_temp.jar, because top-app{com.learningtech.locationapp} loading it. Dexopt result: DEX_OPT_PERFORMED

YummyLau commented 3 years ago

@217fan 一样遇到,你用的是java还是kotlin

217fan commented 3 years ago

@217fan 一样遇到,你用的是java还是kotlin

用的kotlin,后来用Java就好了

YummyLau commented 3 years ago

@217fan 一样遇到,你用的是java还是kotlin

用的kotlin,后来用Java就好了

我们项目混合,发现有些修复不了有些修复得了。kotlin代码也是修复不了。还在找问题。kotlin 暂时没有解决办法么

217fan commented 3 years ago

@217fan 一样遇到,你用的是java还是kotlin

用的kotlin,后来用Java就好了

我们项目混合,发现有些修复不了有些修复得了。kotlin代码也是修复不了。还在找问题。kotlin 暂时没有解决办法么 不清楚,在引入本地module之后遇到了Cause: invalid constant type: 19 at 5的错误,你遇到过吗

YummyLau commented 3 years ago

@217fan 一样遇到,你用的是java还是kotlin

用的kotlin,后来用Java就好了

我们项目混合,发现有些修复不了有些修复得了。kotlin代码也是修复不了。还在找问题。kotlin 暂时没有解决办法么 不清楚,在引入本地module之后遇到了Cause: invalid constant type: 19 at 5的错误,你遇到过吗

这个问题已经被我解决过了。可以看下有一个关于这个的issue。

Stars-shining commented 3 years ago

@217fan 一样遇到,你用的是java还是kotlin

用的kotlin,后来用Java就好了

请问如何解决的呢?我用的java,但还是不起作用