Cannot resolve character Manifest.permission.READ_PHONE_STATE

I am executing a runtime permission request for Marshmallow devices. I installed the build and compiled sdk in API 23 . However, Manifest.permission.READ_PHONE_STATE not recognized

+6
source share
2 answers

I imported the wrong package, the right package

android.Manifest

+24
source

check this

As in 23 sdk, you cannot use dangerous permissions directly from the manifest, you have programming time for rum, for this you drop out of your target sdk at 22. List of dangerous permissions

+1
source

All Articles