android - Uses_permission ignored in androidmanifest.xml -
i've got strange error when building project in android studio. app uses gps current location of user.so in androidmanifest.xml i've placed line:
<uses-permission android:name="android.permission.access_fine_location" /> but when building app,this exception keeps popping up:
e/androidruntime﹕ fatal exception: main java.lang.securityexception: provider gps requires access_fine_location permission when using networkprovider lastknownlocation, app works fine (and use permission).
edit: permissions tag not within application tag.
does recognize error?
place outside application tag.
<uses-permission android:name="android.permission.access_fine_location"></uses-permission> <application..... make sure uses-permission element not inside application element. android studio not show problem in case.
Comments
Post a Comment