My guess is that you are running this on an Android 6.0+ emulator and you have a targetSdkVersion
of 23 or higher.
In that case, ACCESS_COARSE_LOCATION
and ACCESS_FINE_LOCATION
are part of the Android 6.0 runtime permission system. Either revise your app to participate in this system, or drop your targetSdkVersion
below 23.