问题描述
只是在 layout 中引入了 WebView ,然后在 Activity 中写了setContentView()
,在 Android 5.1 的机子运行时就出现了错误。
代码如下:
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".webviewtest.Main18Activity">
<WebView</