gpt4 book ai didi

java - 所有 Android 6.0+ 设备的 Google Play 预发布报告崩溃

转载 作者:行者123 更新时间:2023-11-29 23:00:45 32 4
gpt4 key购买 nike

有人收到 Google Play 商店预发布报告崩溃了吗?我们支持我们的应用程序,它在我们所有的测试设备上运行良好。我们也收到非 SDK API 错误,但它们都在支持库版本 27.1.1 中,我们无法升级到支持库 28.0.0 或 AndroidX。几天前它运行良好,现在运行 >API 19 的预启动报告中的每个测试设备在开始时都崩溃了。我们没有自定义 ParcelableSpans。发生了什么事?

java.lang.AbstractMethodError: abstract method "int android.text.ParcelableSpan.getSpanTypeIdInternal()"
at android.text.TextUtils.writeToParcel(TextUtils.java:653)
at android.os.Parcel.writeCharSequence(Parcel.java:576)
at android.os.Parcel.writeValue(Parcel.java:1362)
at android.os.Parcel.writeList(Parcel.java:759)
at android.view.accessibility.AccessibilityEvent.writeAccessibilityRecordToParcel(AccessibilityEvent.java:1173)
at android.view.accessibility.AccessibilityEvent.writeToParcel(AccessibilityEvent.java:1139)
at android.view.accessibility.IAccessibilityManager$Stub$Proxy.sendAccessibilityEvent(IAccessibilityManager.java:233)
at android.view.accessibility.AccessibilityManager.sendAccessibilityEvent(AccessibilityManager.java:320)
at android.view.ViewRootImpl.requestSendAccessibilityEvent(ViewRootImpl.java:6426)
at android.view.View.sendAccessibilityEventUncheckedInternal(View.java:5842)
at android.view.View.sendAccessibilityEventUnchecked(View.java:5821)
at android.view.View.sendAccessibilityEventInternal(View.java:5798)
at android.view.View.sendAccessibilityEvent(View.java:5765)
at com.android.internal.policy.PhoneWindow$DecorView.sendAccessibilityEvent(PhoneWindow.java:2517)
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3414)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5459)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)

build.gradle

android {
compileSdkVersion 27
defaultConfig {
minSdkVersion 16
targetSdkVersion 27
...
}
...

最佳答案

我们遇到了类似的问题,并通过将以下指令添加到 proguard-rules.pro 文件中解决了该问题:

-keepclassmembers class * implements android.text.ParcelableSpan {
public int getSpanTypeIdInternal();
public void writeToParcelInternal(android.os.Parcel, int);
}

关于java - 所有 Android 6.0+ 设备的 Google Play 预发布报告崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56988866/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com