The project reported an unexplained error. However, I met this error three months ago, and it was only today that I got away with it.
First of all, what happened to this error
The layout file writes a WebView control, loads it in the activity, and then crashes! Only some lower version mobile phones can work normally.
Looking puzzled, I know one thing, there is no problem without reason, and there is nothing that can not be solved. But in the face of this, I gave up, because sometimes the project time is very tight, even Baidu for a long time can not solve the problem, had to keep the problem. I rebuilt a project.
Solution summary:
1. If you encounter this WebView rendering exception on Android o, add it under the application of manifest:
<meta-data android:name="android.webkit.WebView.EnableSafeBrowsing"
android:value="true"/>
2. Error in loading WebView:
reason:
Non native app stores will prompt you to update “Android system WebView”. Update is good, that part of the mobile phone brush machine, Google’s own WebView package lost.
3. A foreign brother said (the problem has been solved)
I had same problem and i solved this problem by changing its theme in manifest.
Modify the theme of Applaction.
I changed any attribute in the theme, that is, a color attribute. After completing this topic and modifying, the project can run normally, and the crash problem disappears. My heart is still full of doubts.
Read More:
- Error inflating class in WebView in Android 5. X android.webkit.WebView Solutions
- android studio:Error inflating class android.support.v4.widget.SwipeRefreshLayout
- Error inflating class android.support.v7.widget.SearchView
- Android WebView loading HTTP error [How to Solve]
- Error: Error parsing D:\new_android\Android SDK\system-images\android-25\android-wear\armeabi-v7a\de
- Android Studio | Failed to find target with hash string ‘android-26’ in: D:\Android\sdk
- How to use Android android:supportsRtl attribute
- Unity Android solves the problem of information flow advertisement closing and error reporting
- Android android.intent.category Purpose and use of. Launcher
- Android Error | Failed to find target with hash string ”android-23′ in…
- Android studio compilation error: style attribute ‘@ android:attr/windowEnterAnimation ‘not found the ultimate solution
- Error inflating class TextView [How to Solve]
- Android Studio Error: Invoke-customs are only supported starting with Android O (–min-api 26)
- Android 9.0 APP Install Android 4.4 Error: classnotfoundexception
- [Solved] Android Gradle configure error: Location: Class buildconfig
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- When Android Studio runs the app, it prompts Error: Please select Android SDK
- Android studio AAPT: error: attribute android:requestLegacyExternalStorage not found.
- As Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
- Error in Cordova project execution command after Android studio upgrade: could not find gradle wrapper within Android SDK