我的应用程序在com.huawei.agconnect.crash.internal.log.h$b.read.上为ArrayIndexOutOfBoundsException保存关于Crashlytics的崩溃报告我试过四处搜索,但似乎没有得到任何信息。
在我最近发布的版本中,我更新了我的agconnect库,但仍然遇到了这种崩溃。以下是这些版本:
build.gradle项目
classpath 'com.huawei.agconnect:agcp:1.7.2.300'build.gradle应用程序
implementation 'com.huawei.hms:base:6.6.0.300'
implementation 'com.huawei.agconnect:agconnect-core:1.7.2.300'
implementation 'com.huawei.hms:hianalytics:6.7.0.300'
implementation 'com.huawei.agconnect:agconnect-crash:1.7.2.300'
implementation 'com.huawei.hms:push:6.7.0.300'
implementation 'com.huawei.agconnect:agconnect-remoteconfig:1.7.2.300'从报告中看,所有的崩溃都是针对华为设备的,而90%+则是安卓10,其余的是安卓11。
这是Crashlytics中显示的堆栈跟踪:
Fatal Exception: java.lang.ArrayIndexOutOfBoundsException:
at com.huawei.agconnect.crash.internal.log.h$b.read(:51)
at com.huawei.agconnect.crash.internal.log.e$1.a(:15)
at com.huawei.agconnect.crash.internal.log.h.a(:21)
at com.huawei.agconnect.crash.internal.log.e.a(:28)
at com.huawei.agconnect.crash.internal.log.f.b(:8)
at com.huawei.agconnect.crash.internal.log.d.a(:215)
at com.huawei.agconnect.crash.internal.log.c.a(:10)
at com.huawei.agconnect.crash.internal.log.a$4.run(:6)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:929)发布于 2022-11-21 07:31:24
不太确定,但这句话在我看来是有问题的:
implementation 'com.huawei.hms:base:6.6.0.300'base应该使用与其他库相同的HMS版本6.7.0.300。
如果不是的话,唯一能够确定这一点的机会是在com.huawei.agconnect.crash.internal.log.h$b.read行51上查看反编译类51(给予或接受)。
这至少提供了一个线索,它试图访问那里的数组.
https://stackoverflow.com/questions/74336893
复制相似问题