Play Console预发布测试中com.google.android.gms崩溃问题求助
Google Play Console预发布测试中GMS相关随机崩溃问题
自上次应用更新后,我们的发布版本在Play Console预发布自动化测试中出现了与Google Play Services(GMS)库相关的崩溃问题。我们无法在自有模拟器、测试设备上复现该问题,甚至在Firebase测试实验室(Play Console预发布测试依赖此服务)中也无法复现。
我们已经尝试升级、降级Firebase和GMS版本,均未解决问题。崩溃类型不固定,但所有崩溃根源都指向com.google.android.gms。更棘手的是,预发布测试有20%的概率不会崩溃;在内部测试中,我们提交仅修改versionCode和versionName的同版本安装包,在同一模拟设备(Google Pixel 8 Android 14)上执行相同测试时,第二次运行却出现了崩溃。
我们还尝试调整与GMS相关的ProGuard配置,包括:
-keep class com.google.android.gms.internal.** { *; }-keep class com.google.android.gms.internal.gms.** { *; }- 未添加任何规则
我们已检查API密钥,确认其正常工作。除了应用内与特定库无关的UI和逻辑代码外,应用其他部分未做任何改动。
崩溃示例1
Stack trace Native crash of com.google.android.gms backtrace: #00 pc 0x000000000004f85c /apex/com.android.runtime/lib64/bionic/libc.so (abort+168)
崩溃示例2
Exception java.lang.IllegalStateException: AppSearchBatchResult has failures: { successes: {} failures: {https://g.co/pixeltips/tips_camera_pro_controls?LaunchFrom=APP_SEARCH=[FAILURE(6)]: Schema type config 'com.google.android.apps.tips$/Tip' not found} } at androidx.a.a.b.a (AppSearchBatchResult.java:1) at com.google.android.apps.tips.search.platform.a.d (PlatformIndex.java:11) at com.google.android.apps.tips.search.b.a (TipsIndexingHelper.java:20) at com.google.android.apps.tips.search.d.run (TipsIndexingJobService.java:1) 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:920)
崩溃示例3
Stack trace Native crash of com.google.android.gms backtrace: #00 pc 0x00000000003255e4 /data/user_de/0/com.google.android.gms/app_chimera/m/00000009/CronetDynamite.uncompressed.apk
崩溃示例4
Stack trace java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference Exception java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference at android.os.Parcel.createExceptionOrNull (Parcel.java:3189) at android.os.Parcel.createException (Parcel.java:3167) at android.os.Parcel.readException (Parcel.java:3150) at android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:202) at android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:154) at android.content.ContentProviderProxy.call (ContentProviderNative.java:764) at android.content.ContentResolver.call (ContentResolver.java:2466) at android.content.ContentResolver.call (ContentResolver.java:2446) at ekfr.a (:com.google.android.gms@242013038@24.20.13 (190400-633713831):29) at com.google.android.gms.wallet.intentoperation.setupwizard.PaymentsSetupWizardAccountChangeIntentOperation.onHandleIntent (:com.google.android.gms@242013038@24.20.13 (190400-633713831):252) at com.google.android.chimera.IntentOperation.onHandleIntent (:com.google.android.gms@242013038@24.20.13 (190400-633713831):2) at ajdw.onHandleIntent (:com.google.android.gms@242013038@24.20.13 (190400-633713831):8) at pbh.run (:com.google.android.gms@242013038@24.20.13 (190400-633713831):70) at pbg.run (:com.google.android.gms@242013038@24.20.13 (190400-633713831):152) at elbx.run (:com.google.android.gms@242013038@24.20.13 (190400-633713831):21) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644) at java.lang.Thread.run (Thread.java:1012)
内容的提问来源于stack exchange,提问作者Pedro Moura
相关产品推荐
相关产品推荐

