Android Java-Webview保持空白

Android Java-Webview保持空白,java,android,android-webview,Java,Android,Android Webview,我正在制作一个包含一些网络视图的应用程序。但不知何故,他们不会加载或保持空白或什么。我想不出来 这是我的一项活动(都是一样的) Android清单: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="appkwekerij.gsr"> <uses-permission andro

我正在制作一个包含一些网络视图的应用程序。但不知何故,他们不会加载或保持空白或什么。我想不出来

这是我的一项活动(都是一样的)

Android清单:

 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="appkwekerij.gsr">

<uses-permission android:name="android.permission.INTERNET" />

<application

    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity
        android:name=".MainActivity"
        android:label="GSR"
        android:theme="@style/AppTheme.NoActionBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

和我的布局:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">

<WebView
    android:id="@+id/webView1"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:visibility="visible" />

</LinearLayout>

我一直试图在谷歌或stackoverflow上寻找答案,但我似乎无法让它工作


非常感谢您的代码中的任何帮助,我看不到
LwebActivity
已在
清单中注册。
你可以查一下

在您的布局中,我刚刚在其中看到WebView。因此,在您的代码中,您可以删除其他代码并进行尝试

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">

<WebView
    android:id="@+id/webView1"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:visibility="visible" />

</LinearLayout>