首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >com.huawei.agconnect.crash.internal.log.h$b.read的ArrayIndexOutOfBoundsException

com.huawei.agconnect.crash.internal.log.h$b.read的ArrayIndexOutOfBoundsException
EN

Stack Overflow用户
提问于 2022-11-06 14:46:16
回答 1查看 55关注 0票数 0

我的应用程序在com.huawei.agconnect.crash.internal.log.h$b.read.上为ArrayIndexOutOfBoundsException保存关于Crashlytics的崩溃报告我试过四处搜索,但似乎没有得到任何信息。

在我最近发布的版本中,我更新了我的agconnect库,但仍然遇到了这种崩溃。以下是这些版本:

build.gradle项目

代码语言:javascript
复制
classpath 'com.huawei.agconnect:agcp:1.7.2.300'

build.gradle应用程序

代码语言:javascript
复制
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中显示的堆栈跟踪:

代码语言:javascript
复制
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)
EN

回答 1

Stack Overflow用户

发布于 2022-11-21 07:31:24

不太确定,但这句话在我看来是有问题的:

代码语言:javascript
复制
implementation 'com.huawei.hms:base:6.6.0.300'

base应该使用与其他库相同的HMS版本6.7.0.300

如果不是的话,唯一能够确定这一点的机会是在com.huawei.agconnect.crash.internal.log.h$b.read51上查看反编译类51(给予或接受)。

这至少提供了一个线索,它试图访问那里的数组.

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74336893

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档