Android:“忽略错误日志中的未知“WebView”XML元素”消息

Android:“忽略错误日志中的未知“WebView”XML元素”消息,android,webview,Android,Webview,首先,很抱歉我的英语不好!! 我是新来的,我是android应用开发者的初学者!我有一个问题: 它是main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_par

首先,很抱歉我的英语不好!! 我是新来的,我是android应用开发者的初学者!我有一个问题:

它是main.xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <TextView
        android:id= "@+id/txtv"     
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" 
        android:text="@string/hello"/>
    <WebView 
        android:id="@+id/webv" 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent"/>  
    <LinearLayout
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <Button
            android:id = "@+id/backButton"
            android:text="@string/bText"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"/>   
        <Button
            android:id = "@+id/forwardButton"
            android:text="@string/fText"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"/>
        >
    </LinearLayout>
    >
</LinearLayout>

编辑:问题已解决,上面的代码已修改,代码正确

从WebView xmlns:android中删除这部分代码=http://schemas.android.com/apk/res/android 并将android:layout\u width和android:layout\u height属性添加到您的按钮。

@evione:不需要在xml文件中显示android.webkit.WebView WebView标记。此时将显示以下错误:AndroidManifest:忽略未知“android.webkit.WebView”XML elementi.M尝试为按钮添加布局宽度和布局高度属性。r你想在WebView上加载html数据,还是想在WebView上加载url?@Sumant-与INTERNET权限无关,如果您认为丢失了…@Sumat-我想在webview上的资产文件夹中加载一个html页面。@Ali.M下次请不要修改有问题的代码。或者,如果要添加解决方案,请添加新代码。不要覆盖它。另外,您的代码现在不正确。
AndroidManifest: Ignoring unknown 'WebView' XML element