Location permission dialog wont show

The Location permission dialog never show up in my app or the solution provided by BigNerdRanch.The situation is if the manifest declared

<uses-permission android:name=“android.permission.ACCESS_FINE_LOCATION” />

then the selfCheckPermission will always return granted, denied if you did not declare it.There is no way to alter it at user level once the app is installed.
Is this has something to do with the API level of your device or the version of appcompat?

I was having the same problem with the dialog box. That was because of the giant red error in LocatrFragment. requestLocationUpdates() needs to be in try/catch (Android Studio 3.0) , the following link can help you resolve that error.