Android Build a Weather App Concurrency and Error Handling Making Our Code Asynchronous

michael lee
michael lee
5,174 Points

error: unexpected element <user-permission> found in <manifest>.

I did exactly as the teacher says, and this error pops out, why?

<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.teamtreehouse.stormy"
          xmlns:android="http://schemas.android.com/apk/res/android">
<user-permission android:name = "android.permission.INTERNET"/>
    <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/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

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

</manifest>

2 Answers

Lauren Moineau
Lauren Moineau
9,328 Points

Hi. It's not <user-permission> but <uses-permission>.

Emmanuel C
Emmanuel C
7,300 Points

The error is saying there is something wrong with the element <user-permission>. Go back to the video and compare that specific tag with the instructors. Computers tend to be very picky about spelling ;)