Uses_permission is ignored in androidmanifest.xml
I have this strange error while building my project in Android Studio. Basically my application uses GPS to get the current location of the user. So in my androidmanifest.xml I placed this line:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
But while creating the application, this exception keeps popping up:
E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.SecurityException: Provider gps requires ACCESS_FINE_LOCATION permission
When using the networkprovider for lastKnownLocation, the application works fine (and will most likely use a different resolution).
EDIT: The permission tag is not part of the app tag.
Does anyone know this error?
+3
source to share
2 answers