0

I declared <user-permission android:name="android.permission.INTERNET" /> in my AndroidManifest since I thought it was the goto way of getting user-permissions.
But I got this warning : "Element user-permission not allowed here"

Via a quick google search I could not figure out what the problem or what the best practice is here.

I am using SDK 21 and up.

Jay Rathod
  • 11,131
  • 6
  • 34
  • 58
Martin Jäkel
  • 322
  • 6
  • 21

1 Answers1

6

Change this.

<user-permission android:name="android.permission.INTERNET" /> //Not Valid

To this.

<uses-permission android:name="android.permission.INTERNET" /> //Correct One
Jay Rathod
  • 11,131
  • 6
  • 34
  • 58