适用于所有Android 6.0+设备的Google Play发布前报告崩溃

时间:2019-07-11 12:09:37

标签: java android firebase-test-lab

有人收到Google Play商店发布前的报告崩溃了吗?我们适合在所有测试设备上都能正常运行的应用程序。我们还会收到Non-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
    ...
  }
  ...

2 个答案:

答案 0 :(得分:1)

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

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

答案 1 :(得分:0)

我建议向Slack的Firebase社区的#test-lab频道询问这些具体问题。最好甚至提供测试失败的确切详细信息,因为开发人员可以直接查看您的情况。