I also encountered the issue. However, after checking if the location is enabled as Crispert suggested, I moved my startScan method from onCreate to onResume. This modification resolved the problem for me.