1

I got sample code from 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 and request permission.
}

I uses above codes, but in Android Studio, ACCESS_FINE_LOCATION is described as cannot resolve symbol ACCESS_FINE_LOCATION with red color font. I already put <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> on my Androidmanifest

What should i do to solve this?

H.fate
  • 644
  • 2
  • 7
  • 18
  • check this answer i think its helpful [a link](http://stackoverflow.com/questions/16948537/adding-permissions-in-androidmanifest-xml-in-android-studio) – moayed ayasaa Sep 12 '16 at 21:39

1 Answers1

1

You can do import manifest manually.

Put import android.Manifest;import part of activity.java

touchingtwist
  • 1,930
  • 4
  • 23
  • 38