我目前正在对 firebase crashlytics 显示的那个问题进行一些研究。而且我似乎无法确定问题的根源。究竟是什么导致了这个问题?此外,此问题主要仅来自 Android 10。感谢您提供任何帮助。
第 114 行:
android:layout_width="0dp"
Run Code Online (Sandbox Code Playgroud)
从
<WebView
android:id="@+id/wvLeadImg"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="0dp"
android:layout_marginTop="0dp"
android:layout_marginEnd="0dp"
app:layout_constraintDimensionRatio="H,16:9"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:visibility="visible" />
Run Code Online (Sandbox Code Playgroud)
错误日志:
Fatal Exception: android.view.InflateException: Binary XML file line #115 in com.knx.thestarmobile:layout/fragment_activity_article: Binary XML file line #115 in com.knx.thestarmobile:layout/fragment_activity_article: Error inflating class android.webkit.WebView
Run Code Online (Sandbox Code Playgroud)
还有一些额外的堆栈跟踪,例如:
Caused by android.view.InflateException: Binary XML file line #115 in com.knx.thestarmobile:layout/fragment_activity_article: Error inflating class android.webkit.WebView
Run Code Online (Sandbox Code Playgroud)
和
Caused by com.android.internal.util.SyncResultReceiver$TimeoutException: Interrupted
at com.android.internal.util.SyncResultReceiver.waitResult(SyncResultReceiver.java:60)
at com.android.internal.util.SyncResultReceiver.getIntResult(SyncResultReceiver.java:68)
at android.view.autofill.AutofillManager.ensureServiceClientAddedIfNeededLocked(AutofillManager.java:1841)
at android.view.autofill.AutofillManager.isEnabled(AutofillManager.java:830)
at Al.<init>(Al.java:4)
at El.<init>(El.java:1)
at org.chromium.android_webview.AwContents.<init>(AwContents.java:19) …Run Code Online (Sandbox Code Playgroud)