BuglyDevTeam / Bugly-Android-Demo

Bugly Android SDK 使用例子
Apache License 2.0
810 stars 312 forks source link

Beta.checkUpgrade出错 #332

Open gandesheng opened 2 years ago

gandesheng commented 2 years ago

异常类型

运行异常

手机型号

荣耀20

手机系统版本

Android 10

Tinker版本

1.9.14.17

gradle版本

4.2.1

系统

Windows

堆栈/日志

E/CrashReport: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference at com.tencent.bugly.proguard.l.a(BUGLY:132) at com.tencent.bugly.proguard.l.a(BUGLY:45) at com.tencent.bugly.proguard.pa.a(BUGLY:15) at com.tencent.bugly.proguard.l.a(BUGLY:93) at com.tencent.bugly.proguard.l.a(BUGLY:117) at com.tencent.bugly.proguard.d.a(BUGLY:7) at com.tencent.bugly.proguard.e.a(BUGLY:2) at com.tencent.bugly.proguard.M.a(BUGLY:128) at com.tencent.bugly.beta.upgrade.b.a(BUGLY:47) at com.tencent.bugly.beta.upgrade.d.a(BUGLY:200) at com.tencent.bugly.beta.Beta.a(BUGLY:7) at com.tencent.bugly.beta.Beta.checkUpgrade(BUGLY:2

复现路径

执行主动检查热更新补丁Beta.checkUpgrade(false,false)方法,出现以上问题,不会崩溃,只是打印这个错误

linzhongshu commented 2 years ago

1.5.0以上,我也是

budaowengd commented 1 year ago

1.5.0以上,我也是

我也是, 你们解决了吗?

MissBin commented 1 year ago

写个UI线程 延时1S执行这个就好了

lidongRebirth commented 1 year ago

写个UI线程 延时1S执行这个就好了 可以解决, 应该是Application的初始化太多导致使用时Bugly还没初始化完成就检查更新导致的