【发布时间】:2022-03-29 16:03:23
【问题描述】:
我在尝试使用 dexguard 在发布模式下打开 HMS 地图时遇到了这个问题。应用程序崩溃并出现此异常:
libc:致命信号 11 (SIGSEGV),代码 1 (SEGV_MAPERR),tid 19062 (GLThread 249) 中的故障地址 0x0,pid 15351 (nza.ambitwizhmb) 2022-01-25 23:44:02.463 19184-19184/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** * ** 2022-01-25 23:44:02.463 19184-19184/? A/DEBUG:构建指纹:'HUAWEI/JNY-LX1/HWJNY:10/HUAWEIJNY-L21/10.1.0.386C185:user/release-keys' 2022-01-25 23:44:02.463 19184-19184/? A/调试:uid:10196 2022-01-25 23:44:02.463 19184-19184/? A/DEBUG:信号11(SIGSEGV),代码1(SEGV_MAPERR),故障地址0x0
当我在调试模式下运行该应用程序时,它运行得非常好。打开地图时,崩溃时间会有所不同。有时地图显示正确,但有时在加载时崩溃。
hms 的 dexguard 配置是
-keep class com.huawei.agconnect.**{*;}
-dontwarn com.huawei.agconnect.**
-keep class com.hianalytics.android.**{*;}
-keep class com.huawei.updatesdk.**{*;}
-keep class com.huawei.hms.**{*;}
-keep interface com.huawei.hms.analytics.type.HAEventType{*;}
-keep interface com.huawei.hms.analytics.type.HAParamType{*;}
-keep class com.huawei.agconnect.** {*;}
-keepresources string/agc_*
-keepresources string/upsdk_store_url
-keepresources string/hms_update_title
-keepresourcefiles assets/hmsrootcas.bks
-keepresourcefiles assets/grs_*
【问题讨论】:
-
hi@Taha alam,我可以确认您使用的地图 SDK 版本是什么吗?建议您使用lastest version。
标签: android huawei-mobile-services dexguard huawei-map-kit