In my android project manifest, Android Studio gives an inspection error in a android:uses-permission
element. But app successfully compiles.
What is the meaning of this inspection? How can I correct it?
Every app project must have an AndroidManifest. xml file (with precisely that name) at the root of the project source set. The manifest file describes essential information about your app to the Android build tools, the Android operating system, and Google Play.
The name attribute is used to specify the Fragment class that is used to create the View hierarchy - in this case myFragment.
The Android manifest file helps to declare the permissions that an app must have to access data from other apps. The Android manifest file also specifies the app's package name that helps the Android SDK while building the app.
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" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
This also works
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With