tinker icon indicating copy to clipboard operation
tinker copied to clipboard

Tinker: Caused by: java.lang.NoSuchMethodError: No virtual method position(I)Ljava/nio/ByteBuffer; in class Ljava/nio/ByteBuffer;

Open TopBigOne opened this issue 2 years ago • 0 comments

异常类型:app运行时异常

手机型号:锤子坚果pro
手机系统版本:Android 8.0

tinker版本:如:1.9.14.25.2

gradle版本:如:6.7.1

是否使用热更新SDK: 如 TinkerPatch SDK 或者 Bugly SDK

系统::Mac

堆栈/日志:
21:41:55.770  7480-7506                                      com.yxl.fish           E  tinker patch exception  com.tencent.tinker.loader.TinkerRuntimeException: Tinker Exception:patch dex extract failed (No virtual method position(I)Ljava/nio/ByteBuffer; in class Ljava/nio/ByteBuffer; or its super classes (declaration of 'java.nio.ByteBuffer' appears in /system/framework/core-oj.jar)).
                                                                                       	at com.tencent.tinker.lib.patch.DexDiffPatchInternal.extractDexDiffInternals(DexDiffPatchInternal.java:614)
                                                                                       	at com.tencent.tinker.lib.patch.DexDiffPatchInternal.patchDexExtractViaDexDiff(DexDiffPatchInternal.java:172)
                                                                                       	at com.tencent.tinker.lib.patch.DexDiffPatchInternal.tryRecoverDexFiles(DexDiffPatchInternal.java:87)
                                                                                       	at com.tencent.tinker.lib.patch.UpgradePatch.tryPatch(UpgradePatch.java:172)
                                                                                       	at com.tencent.tinker.lib.service.TinkerPatchService.doApplyPatch(TinkerPatchService.java:223)
                                                                                       	at com.tencent.tinker.lib.service.TinkerPatchService.onHandleIntent(TinkerPatchService.java:101)
                                                                                       	at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:76)
                                                                                       	at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                       	at android.os.Looper.loop(Looper.java:167)
                                                                                       	at android.os.HandlerThread.run(HandlerThread.java:65)
                                                                                       Caused by: java.lang.NoSuchMethodError: No virtual method position(I)Ljava/nio/ByteBuffer; in class Ljava/nio/ByteBuffer; or its super classes (declaration of 'java.nio.ByteBuffer' appears in /system/framework/core-oj.jar)
                                                                                       	at com.tencent.tinker.android.dex.Dex.openSection(Dex.java:232)
                                                                                       	at com.tencent.tinker.android.dex.TableOfContents.readFrom(TableOfContents.java:145)
                                                                                       	at com.tencent.tinker.android.dex.Dex.loadFrom(Dex.java:171)
                                                                                       	at com.tencent.tinker.android.dex.Dex.loadFrom(Dex.java:164)
                                                                                       	at com.tencent.tinker.android.dex.Dex.<init>(Dex.java:94)
                                                                                       	at com.tencent.tinker.commons.dexpatcher.DexPatchApplier.<init>(DexPatchApplier.java:96)
                                                                                       	at com.tencent.tinker.lib.patch.DexDiffPatchInternal.patchDexFile(DexDiffPatchInternal.java:740)
                                                                                       	at com.tencent.tinker.lib.patch.DexDiffPatchInternal.extractDexDiffInternals(DexDiffPatchInternal.java:597)
                                                                                       	at com.tencent.tinker.lib.patch.DexDiffPatchInternal.patchDexExtractViaDexDiff(DexDiffPatchInternal.java:172) 
                                                                                       	at com.tencent.tinker.lib.patch.DexDiffPatchInternal.tryRecoverDexFiles(DexDiffPatchInternal.java:87) 
                                                                                       	at com.tencent.tinker.lib.patch.UpgradePatch.tryPatch(UpgradePatch.java:172) 
                                                                                       	at com.tencent.tinker.lib.service.TinkerPatchService.doApplyPatch(TinkerPatchService.java:223) 
                                                                                       	at com.tencent.tinker.lib.service.TinkerPatchService.onHandleIntent(TinkerPatchService.java:101) 
                                                                                       	at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:76) 
                                                                                       	at android.os.Handler.dispatchMessage(Handler.java:106) 
                                                                                       	at android.os.Looper.loop(Looper.java:167) 
                                                                                       	at android.os.HandlerThread.run(HandlerThread.java:65) 

TopBigOne avatar Nov 24 '22 14:11 TopBigOne