AndroidManiferst.xml 中加入
<uses-permission android:name="android.permission.INTERNET"/>
fragment_first.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:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".FirstFragment">
<TextView
android:id="@+id/textView"
android:layout_width="213dp"
android:layout_height="108dp"
android:text="Test"
tools:ignore="MissingConstraints" />
<WebView
android:id="@+id/W