Lahiru Chandima
Lahiru Chandima

Reputation: 24068

'name' attribute should be defined - error in android manifest

In my android project manifest, Android Studio gives an inspection error in a android:uses-permission element. But app successfully compiles.

enter image description here

enter image description here What is the meaning of this inspection? How can I correct it?

Upvotes: 13

Views: 6634

Answers (2)

Kamal
Kamal

Reputation: 245

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

This also works

Upvotes: 1

Aleksandar
Aleksandar

Reputation: 1173

You can see the error based on first three lines. Delete android: part from line. Write:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

instead of:

<android:uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Upvotes: 30

Related Questions