Reputation: 13
I want to make an android site application on Webview, but there is an error I can't find it Element type "uses-permission" must be followed by either attribute specifications, ">" or "/>".
<uses-permission android:name="android.permission.INTERNET"</uses-permission>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Flyregalis">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
Upvotes: 0
Views: 251
Reputation: 8467
That's because the XML <uses-permission>
nodes have to be closed like this >
or like this />
Swapping your line for this one will fix it:
<!-- Note that you did not close the opening XML tag -->
<!-- <uses-permission android:name="android.permission.INTERNET" <-- here !! -->
<uses-permission android:name="android.permission.INTERNET"/>
Upvotes: 1