12

I am implementing runtime permission request for Marshmallow devices. I have set my build and compile sdk to API 23. Still Manifest.permission.READ_PHONE_STATE is not recognizable

Aditya Vyas-Lakhan
  • 13,409
  • 16
  • 61
  • 96
Aditya Borde
  • 1,227
  • 2
  • 12
  • 31

2 Answers2

38

I had imported wrong package, the right package is

android.Manifest

Aditya Borde
  • 1,227
  • 2
  • 12
  • 31
1

check this

As in 23 sdk you can not use dangerous permission directly from manifest you have do rum time programming for this else drop down your target sdk to 22. List of dangerous permissions

Community
  • 1
  • 1
Jishant
  • 574
  • 3
  • 14