Location permission dialog wont show

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.