magicbaby810/HotfixFlutter

NoClassDefFoundError: Failed resolution of: Lcom/tencent/tinker/lib/util/TinkerLog

Closed this issue · 4 comments

2020-10-17 19:59:18.840 2253-3077/? E/Hicom_MpFlowDecisionSystem: startMpFlow. multipathFlow is illegal
2020-10-17 19:59:18.843 2253-3077/? E/Hicom_PolicyCenterService: handleAppStarted. multipathPolicy is null
2020-10-17 19:59:19.006 1259-3474/? E/NotificationPrefHelper: createDefaultChannelIfNeededLocked - Exception: android.content.pm.PackageManager$NameNotFoundException: ht.com.fsky
2020-10-17 19:59:19.007 1259-3474/? E/NotificationPrefHelper: record uid is below zero
    java.lang.Throwable
        at com.android.server.notification.PreferencesHelper.getOrCreatePackagePreferencesLocked(libmapleservices.so:6036188)
        at com.android.server.notification.PreferencesHelper.getImportance(libmapleservices.so:5784024)
        at com.android.server.notification.NotificationManagerService$10.areNotificationsEnabledForPackage(libmapleservices.so:5633880)
        at android.app.INotificationManager$Stub.onTransact(libmapleframework.so:4552504)
        at android.os.Binder.execTransactInternal(libmapleframework.so:5520808)
        at android.os.Binder.execTransact(libmapleframework.so:5520020)
2020-10-17 19:59:19.007 1259-2514/? E/NotificationPrefHelper: createDefaultChannelIfNeededLocked - Exception: android.content.pm.PackageManager$NameNotFoundException: ht.com.fsky
2020-10-17 19:59:19.007 1259-2514/? E/NotificationPrefHelper: record uid is below zero
    java.lang.Throwable
        at com.android.server.notification.PreferencesHelper.getOrCreatePackagePreferencesLocked(libmapleservices.so:6036188)
        at com.android.server.notification.PreferencesHelper.getImportance(libmapleservices.so:5784024)
        at com.android.server.notification.PreferencesHelper.setEnabled(libmapleservices.so:5155372)
        at com.android.server.notification.NotificationManagerService$10.setNotificationsEnabledForPackage(libmapleservices.so:5155724)
        at android.app.INotificationManager$Stub.onTransact(libmapleframework.so:4552832)
        at android.os.Binder.execTransactInternal(libmapleframework.so:5520808)
        at android.os.Binder.execTransact(libmapleframework.so:5520020)
2020-10-17 19:59:19.023 11651-11720/? E/HwGameAssistant-10.6.0.301-GameDataManager: appDataTss is null!
2020-10-17 19:59:19.024 11651-11720/? E/HwGameAssistant-10.6.0.301-BuoyDataManager: appDataTss is null!
2020-10-17 19:59:19.065 2116-2873/? E/HSC_SEC_BG: AddViewAppManager:updateDataToFramework blackListItems is null or empty
2020-10-17 19:59:19.075 11674-11674/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: ht.com.fsky, PID: 11674
    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/tencent/tinker/lib/util/TinkerLog;
        at com.sk.flutterpatch.FlutterPatch.hook(FlutterPatch.java:73)
        at io.flutter.view.FlutterMain.startInitialization(FlutterMain.java:49)
        at io.flutter.app.FlutterApplication.onCreate(FlutterApplication.java:24)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1202)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7349)
        at android.app.ActivityThread.access$2400(ActivityThread.java:308)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2295)
        at android.os.Handler.dispatchMessage(Handler.java:110)
        at android.os.Looper.loop(Looper.java:219)
        at android.app.ActivityThread.main(ActivityThread.java:8347)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.tencent.tinker.lib.util.TinkerLog" on path: DexPathList[[zip file "/data/app/ht.com.fsky-9u726bLLuIPGjxisWmHlxw==/base.apk"],nativeLibraryDirectories=[/data/app/ht.com.fsky-9u726bLLuIPGjxisWmHlxw==/lib/arm64, /data/app/ht.com.fsky-9u726bLLuIPGjxisWmHlxw==/base.apk!/lib/arm64-v8a, /system/lib64, /hw_product/lib64, /system/product/lib64, /prets/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:209)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at com.sk.flutterpatch.FlutterPatch.hook(FlutterPatch.java:73) 
        at io.flutter.view.FlutterMain.startInitialization(FlutterMain.java:49) 
        at io.flutter.app.FlutterApplication.onCreate(FlutterApplication.java:24) 
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1202) 
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7349) 
        at android.app.ActivityThread.access$2400(ActivityThread.java:308) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2295) 
        at android.os.Handler.dispatchMessage(Handler.java:110) 
        at android.os.Looper.loop(Looper.java:219) 
        at android.app.ActivityThread.main(ActivityThread.java:8347) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055) 
2020-10-17 19:59:19.076 11674-11737/? E/AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@be1fb98

tinker 依赖进去了吗?

项目只适用于flutter-boost吗,我没有用flutter-boost。项目里面没有看到.android路径[尴尬]

是我配置问题

您好,我也遇到了这个问题,但是我项目没有接入tinker,用的是阿里的热修复,怎么解决呢?