Android googlemap permission check, cannot resolve symbol -
i got sample code https://developers.google.com/maps/documentation/android-api/location?hl=en
if (activitycompat.checkselfpermission(this, manifest.permission.access_fine_location) == packagemanager.permission_granted) { mmap.setmylocationenabled(true); } else { // show rationale , request permission. }
i uses above codes, in android studio, access_fine_location
described cannot resolve symbol access_fine_location
red color font. put <uses-permission android:name="android.permission.access_fine_location"/>
on androidmanifest
what should solve this?
you can import manifest manually.
put import android.manifest;
import part of activity.java
Comments
Post a Comment