“location provider requires ACCESS_FINE_LOCATION permission” even if I use runtime request permission
问题 This is so weird. We all know that if <uses-sdk android:targetSdkVersion="23"/> is set to 23+, you must ask for runtime permissions besides declaring <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> in the manifest. This has been working with no problem for years. Now, The problem is that when I am setting targetSdkVersion to "26", the LocationManager is not working anymore! and throws this error: "gps" location provider requires ACCESS_FINE_LOCATION permission The