错误:元素类型“uses-permission”后面必须跟属性规范“>”或“/>”

ERROR:Element type "uses-permission" must be followed by either attribute specifications, ">" or "/>"

本文关键字:属性 类型 元素 uses-permission 错误      更新时间:2023-09-26

我一直在尝试将网页转换为应用程序。但是每次我尝试在连接到笔记本电脑USB的设备中运行它时,都会出现这些错误。

错误:元素类型"uses-permission"后面必须跟有属性规范">"或"/>"。

错误:无法从 C:''Users''MUKESH''AndroidStudioProjects''New''app''src''main''AndroidManifest 读取包名称.xml

[1]: https://i.stack.imgur.com/3lxBs.jpg
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.garvit.anew">
<uses-permission
android:name="android.permission.INTERNET"s />
<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity
        android:name=".Firstnew"
        android:label="@string/app_name"
        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>
<uses-permission android:name="android.permission.INTERNET"s />

所以你有元素类型:uses-permission

然后是属性规范:android:name="android.permission.INTERNET"

然后是不是属性规范的东西:s

。这是一个错误,应该删除。

相关文章: