Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

michael lee
michael lee
5,179 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"
<user-permission android:name = "android.permission.INTERNET"/>
        <activity android:name=".MainActivity">
                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>


2 Answers

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

Emmanuel C
Emmanuel C
10,635 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 ;)