Tencent / tinker

Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstall apk.
Other
17.18k stars 3.33k forks source link

Android9.0补丁应用失败,之后App一直Crash闪退 #1079

Open 110117ab opened 5 years ago

110117ab commented 5 years ago

Issue/提问须知

在提交issue之前,我们应该先查询是否已经有相关的issue以及常见问题。提交issue时,我们需要写明issue的原因,以及编译或运行过程的日志(加载进程以及Patch进程)。issue需要以下面的格式:

异常类型:app运行时异常

手机型号:XiaoMI 

手机系统版本:Android 9.0

tinker版本:如:1.9.9

gradle版本:如:2.3.3

是否使用热更新SDK: 是

系统:Window

堆栈/日志:
2.   2019-04-23 14:51:34.176 27518-27518/? D/Tinker.TinkerInternals: getCurrentInstructionSet:arm
2019-04-23 14:51:34.176 27518-27518/? W/Tinker.TinkerLoader: tryLoadPatchFiles:isEnabledForResource:true
2019-04-23 14:51:34.176 27518-27518/? D/Tinker.TinkerInternals: same fingerprint:Xiaomi/equuleus/equuleus:9/PKQ1.180729.001/V10.2.1.0.PECCNFK:user/release-keys
2019-04-23 14:51:34.177 27518-27518/? W/Tinker.TinkerInternals: getSafeModeCount: preferName:tinker_own_config_com.dongbao.ygzj count:0
2019-04-23 14:51:34.183 27518-27518/? W/Tinker.TinkerInternals: setSafeModeCount: preferName:tinker_own_config_com.dongbao.ygzj count:1
2019-04-23 14:51:34.183 27518-27518/? I/Tinker.TinkerDexLoader: classloader: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.mock.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.dongbao.ygzj-DMCopERySEWhwNABdjmoJA==/base.apk"],nativeLibraryDirectories=[/data/app/com.dongbao.ygzj-DMCopERySEWhwNABdjmoJA==/lib/arm, /system/fake-libs, /data/app/com.dongbao.ygzj-DMCopERySEWhwNABdjmoJA==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]]
2019-04-23 14:51:34.183 27518-27518/? I/Tinker.TinkerDexLoader: verify dex file:/data/user/0/com.dongbao.ygzj/tinker/patch-bd601a59/dex/tinker_classN.apk md5, use time: 0
2019-04-23 14:51:34.183 27518-27518/? I/Tinker.ClassLoaderAdder: installDexes dexOptDir: /data/user/0/com.dongbao.ygzj/tinker/patch-bd601a59/odex, dex size:1
2019-04-23 14:51:34.191 27518-27518/? I/Tinker.ClassLoaderAdder: after loaded classloader: com.tencent.tinker.loader.AndroidNClassLoader[DexPathList[[zip file "/data/user/0/com.dongbao.ygzj/tinker/patch-bd601a59/dex/tinker_classN.apk", zip file "/data/app/com.dongbao.ygzj-DMCopERySEWhwNABdjmoJA==/base.apk"],nativeLibraryDirectories=[/data/app/com.dongbao.ygzj-DMCopERySEWhwNABdjmoJA==/lib/arm, /system/fake-libs, /data/app/com.dongbao.ygzj-DMCopERySEWhwNABdjmoJA==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]], dex size:1
2019-04-23 14:51:34.191 27518-27518/? W/Tinker.ClassLoaderAdder: checkDexInstall result:true
2019-04-23 14:51:34.191 27518-27518/? I/Tinker.IncrementCompMgr: package has no incremental component meta, skip init.
2019-04-23 14:51:34.192 27518-27518/? I/Tinker.TinkerLoader: tryLoadPatchFiles: load end, ok!
2019-04-23 14:51:34.193 27518-27518/? D/Tinker.DefaultAppLike: onBaseContextAttached:
2019-04-23 14:51:34.197 27518-27518/? W/Tinker.TinkerInternals: setSafeModeCount: preferName:tinker_own_config_com.dongbao.ygzj count:0
2019-04-23 14:51:34.198 27518-27518/? I/Tinker.ReflectApp: with app realApplication from manifest applicationName:com.dongbao.ygzj.MyApplication
2019-04-23 14:51:34.230 27518-27518/? I/Tinker.TinkerPatchListener: application maxMemory:512
2019-04-23 14:51:34.233 27518-27518/? W/Tinker.Tinker: tinker patch directory: /data/user/0/com.dongbao.ygzj/tinker
2019-04-23 14:51:34.234 27518-27518/? I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.9
2019-04-23 14:51:34.235 27518-27518/? I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:0, process name:com.dongbao.ygzj, main process:true, systemOTA:false, fingerPrint:Xiaomi/equuleus/equuleus:9/PKQ1.180729.001/V10.2.1.0.PECCNFK:user/release-keys, oatDir:odex, useInterpretMode:false
2019-04-23 14:51:34.235 27518-27518/? I/Tinker.TinkerLoadResult: parseTinkerResult oldVersion:bd601a594d67fc452411465e4505928b, newVersion:bd601a594d67fc452411465e4505928b, current:bd601a594d67fc452411465e4505928b
2019-04-23 14:51:34.235 27518-27518/? I/Tinker.TinkerLoadResult: oh yeah, tinker load all success
2019-04-23 14:51:34.235 27518-27518/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.dongbao.ygzj/tinker, code: 0, cost: 32ms
2019-04-23 14:51:34.258 27518-27518/? E/Tinker.ReflectApp: replaceApplicationLike delegateClass:class com.tencent.bugly.beta.tinker.TinkerApplicationLike
2019-04-23 14:51:34.260 27518-27518/? I/Tinker.ComponentHotplug: method install() is not invoked, ignore ensuring operations.
2019-04-23 14:51:34.260 27518-27518/? D/Tinker.DefaultAppLike: onCreate
2019-04-23 14:51:34.358 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.358 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.359 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.359 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.360 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.360 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.360 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.360 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.361 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.361 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.362 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.362 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.362 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.362 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.363 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.363 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.364 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.364 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.365 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.365 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.365 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.365 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.366 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.366 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.367 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.367 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.367 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.368 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.368 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.369 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.369 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.370 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.370 27518-27518/? I/om.dongbao.ygz:     at void com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate() (SourceFile:189)
2019-04-23 14:51:34.542 27518-27518/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad patch file: /data/user/0/com.dongbao.ygzj/tinker_temp/temp.apk is not exist, just return
2019-04-23 14:51:37.816 27629-27629/? D/Tinker.TinkerInternals: getCurrentInstructionSet:arm
2019-04-23 14:51:37.817 27629-27629/? W/Tinker.TinkerLoader: tryLoadPatchFiles:isEnabledForResource:true
2019-04-23 14:51:37.817 27629-27629/? D/Tinker.TinkerInternals: same fingerprint:Xiaomi/equuleus/equuleus:9/PKQ1.180729.001/V10.2.1.0.PECCNFK:user/release-keys
2019-04-23 14:51:37.818 27629-27629/? W/Tinker.TinkerInternals: getSafeModeCount: preferName:tinker_own_config_com.dongbao.ygzj:process1 count:0
2019-04-23 14:51:37.824 27629-27629/? W/Tinker.TinkerInternals: setSafeModeCount: preferName:tinker_own_config_com.dongbao.ygzj:process1 count:1
2019-04-23 14:51:37.824 27629-27629/? I/Tinker.TinkerDexLoader: classloader: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.mock.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.dongbao.ygzj-DMCopERySEWhwNABdjmoJA==/base.apk"],nativeLibraryDirectories=[/data/app/com.dongbao.ygzj-DMCopERySEWhwNABdjmoJA==/lib/arm, /system/fake-libs, /data/app/com.dongbao.ygzj-DMCopERySEWhwNABdjmoJA==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]]
2019-04-23 14:51:37.825 27629-27629/? I/Tinker.TinkerDexLoader: verify dex file:/data/user/0/com.dongbao.ygzj/tinker/patch-bd601a59/dex/tinker_classN.apk md5, use time: 0
2019-04-23 14:51:37.825 27629-27629/? I/Tinker.ClassLoaderAdder: installDexes dexOptDir: /data/user/0/com.dongbao.ygzj/tinker/patch-bd601a59/odex, dex size:1
2019-04-23 14:51:37.835 27629-27629/? I/Tinker.ClassLoaderAdder: after loaded classloader: com.tencent.tinker.loader.AndroidNClassLoader[DexPathList[[zip file "/data/user/0/com.dongbao.ygzj/tinker/patch-bd601a59/dex/tinker_classN.apk", zip file "/data/app/com.dongbao.ygzj-DMCopERySEWhwNABdjmoJA==/base.apk"],nativeLibraryDirectories=[/data/app/com.dongbao.ygzj-DMCopERySEWhwNABdjmoJA==/lib/arm, /system/fake-libs, /data/app/com.dongbao.ygzj-DMCopERySEWhwNABdjmoJA==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]], dex size:1
2019-04-23 14:51:37.835 27629-27629/? W/Tinker.ClassLoaderAdder: checkDexInstall result:true
2019-04-23 14:51:37.835 27629-27629/? I/Tinker.IncrementCompMgr: package has no incremental component meta, skip init.
2019-04-23 14:51:37.835 27629-27629/? I/Tinker.TinkerLoader: tryLoadPatchFiles: load end, ok!
2019-04-23 14:51:37.836 27629-27629/? D/Tinker.DefaultAppLike: onBaseContextAttached:
2019-04-23 14:51:37.840 27629-27629/? W/Tinker.TinkerInternals: setSafeModeCount: preferName:tinker_own_config_com.dongbao.ygzj:process1 count:0
2019-04-23 14:51:37.841 27629-27629/? I/Tinker.ReflectApp: with app realApplication from manifest applicationName:com.dongbao.ygzj.MyApplication
2019-04-23 14:51:37.849 27629-27629/? D/RePlugin.ws001: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
        at com.qihoo360.loader2.PluginManager.a(SourceFile:111)
        at com.qihoo360.loader2.PluginManager.a(SourceFile:94)
        at com.qihoo360.loader2.PMF.a(SourceFile:69)
        at com.qihoo360.replugin.RePlugin$App.a(SourceFile:982)
        at com.dongbaosoft.common.application.BaseApplication.attachBaseContext(SourceFile:79)
        at com.dongbao.ygzj.MyApplication.attachBaseContext(SourceFile:1184)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.attachBaseContext(SourceFile:79)
        at android.app.Application.attach(Application.java:237)
        at android.app.Instrumentation.newApplication(Instrumentation.java:1122)
        at android.app.LoadedApk.makeApplication(LoadedApk.java:1065)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5916)
        at android.app.ActivityThread.access$1200(ActivityThread.java:200)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1673)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:201)
        at android.app.ActivityThread.main(ActivityThread.java:6806)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
2019-04-23 14:51:37.874 27629-27629/? I/Tinker.TinkerPatchListener: application maxMemory:512
2019-04-23 14:51:37.880 27629-27629/? W/Tinker.Tinker: tinker patch directory: /data/user/0/com.dongbao.ygzj/tinker
2019-04-23 14:51:37.881 27629-27629/? I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.9
2019-04-23 14:51:37.882 27629-27629/? I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:0, process name:com.dongbao.ygzj:process1, main process:false, systemOTA:false, fingerPrint:Xiaomi/equuleus/equuleus:9/PKQ1.180729.001/V10.2.1.0.PECCNFK:user/release-keys, oatDir:odex, useInterpretMode:false
2019-04-23 14:51:37.882 27629-27629/? I/Tinker.TinkerLoadResult: parseTinkerResult oldVersion:bd601a594d67fc452411465e4505928b, newVersion:bd601a594d67fc452411465e4505928b, current:bd601a594d67fc452411465e4505928b
2019-04-23 14:51:37.882 27629-27629/? I/Tinker.TinkerLoadResult: oh yeah, tinker load all success
2019-04-23 14:51:37.882 27629-27629/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.dongbao.ygzj/tinker, code: 0, cost: 34ms
2019-04-23 14:51:37.886 27629-27629/? E/Tinker.ReflectApp: replaceApplicationLike delegateClass:class com.tencent.bugly.beta.tinker.TinkerApplicationLike
2019-04-23 14:51:37.889 27629-27629/? I/Tinker.ComponentHotplug: method install() is not invoked, ignore ensuring operations.
2019-04-23 14:51:37.889 27629-27629/? D/Tinker.DefaultAppLike: onCreate
2019-04-23 14:51:38.065 27629-27659/? A/o.ygzj:process: runtime.cc:558]   at com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate(SourceFile:189)
2019-04-23 14:51:38.100 27629-27629/? W/System.err:     at com.tencent.bugly.beta.tinker.TinkerPatchReflectApplication.onCreate(SourceFile:189)
2019-04-23 14:51:38.188 27629-27629/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry is not main process, just return
2019-04-23 14:51:38.490 27518-27518/? E/Tinker.TinkerUncaughtExceptionHandler: uncaughtException:View with id 2131757262: com.dongbaosoft.ygzj.widget.dragview.DragGridViewNew#onMeasure() did not set the measured dimension by calling setMeasuredDimension()
2019-04-23 14:51:38.494 27518-27518/? E/Tinker.TinkerUncaughtExceptionHandler: tinker has fast crash 1 times
2019-04-23 14:51:38.494 27518-27518/? E/Tinker.UncaughtHandler: TinkerUncaughtHandler catch exception:java.lang.IllegalStateException: View with id 2131757262: com.dongbaosoft.ygzj.widget.dragview.DragGridViewNew#onMeasure() did not set the measured dimension by calling setMeasuredDimension()
        at android.view.View.measure(View.java:23236)
        at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
        at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
        at android.view.View.measure(View.java:23223)
        at android.support.v7.widget.RecyclerView$LayoutManager.measureChildWithMargins(SourceFile:8636)
        at android.support.v7.widget.LinearLayoutManager.layoutChunk(SourceFile:1577)
        at android.support.v7.widget.LinearLayoutManager.fill(SourceFile:1511)
        at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(SourceFile:595)
        at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(SourceFile:3583)
        at android.support.v7.widget.RecyclerView.dispatchLayout(SourceFile:3312)
        at android.support.v7.widget.RecyclerView.onLayout(SourceFile:3844)
        at android.view.View.layout(View.java:20726)
        at android.view.ViewGroup.layout(ViewGroup.java:6198)
        at android.support.v4.widget.SwipeRefreshLayout.onLayout(SourceFile:636)
        at android.view.View.layout(View.java:20726)
        at android.view.ViewGroup.layout(ViewGroup.java:6198)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at com.dongbaosoft.ygzj.widget.MoveView.MyCoordinatorLayout.onLayout(SourceFile:35)
        at android.view.View.layout(View.java:20726)
        at android.view.ViewGroup.layout(ViewGroup.java:6198)
        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
        at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
        at android.view.View.layout(View.java:20726)
        at android.view.ViewGroup.layout(ViewGroup.java:6198)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at android.view.View.layout(View.java:20726)
        at android.view.ViewGroup.layout(ViewGroup.java:6198)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at android.view.View.layout(View.java:20726)
        at android.view.ViewGroup.layout(ViewGroup.java:6198)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at android.view.View.layout(View.java:20726)
        at android.view.ViewGroup.layout(ViewGroup.java:6198)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at android.view.View.layout(View.java:20726)
        at android.view.ViewGroup.layout(ViewGroup.java:6198)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at android.view.View.layout(View.java:20726)
        at android.view.ViewGroup.layout(ViewGroup.java:6198)
        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
        at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
        at android.view.View.layout(View.java:20726)
        at android.view.ViewGroup.layout(ViewGroup.java:6198)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at android.view.View.layout(View.java:20726)
        at android.view.ViewGroup.layout(ViewGroup.java:6198)
        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
        at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
        at android.view.View.layout(View.java:20726)
        at android.view.ViewGroup.layout(ViewGroup.java:6198)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
        at android.widget.FrameLayout.onLayout(Frame

没有下载补丁应用前,是不会报DragGridViewNew onMeasure这种错的,只会显示 2019-04-23 14:44:04.560 21716-21716/? E/Tinker.ReflectApp: replaceApplicationLike delegateClass:class com.tencent.bugly.beta.tinker.TinkerApplicationLike

XiaoMI6 Android8.0手机应用补丁正常,无闪退

tys282000 commented 5 years ago

DragGridViewNew这个view是通过补丁新增的吗? 我看系统源码和这个DragGridView的源码好像本来就有问题,DragGridViewNew在它的onMeasure里确实没调setMeasuredDimension方法。

110117ab commented 5 years ago

现在不会闪退了,但是应用不成功

110117ab commented 5 years ago

我看其他issue也有提到小米8补丁应用失败,是存在这个Bug嘛?

tys282000 commented 5 years ago

只要crash的堆栈一样应该就是同一个问题了,要具体看下才知道哇。