Can't turn on location on android api23?

后端 未结 2 664
旧巷少年郎
旧巷少年郎 2021-01-24 13:49

I have used the following code and the dialogue that asks for permission shows as expected. But when I click \"allow\" it doesn\'t do anything. The log message doesn\'t appear a

2条回答
  •  情深已故
    2021-01-24 14:15

    you might have to add a dependency in your build.gradle:

    compile 'com.google.android.gms:play-services-location:10.0.1

提交回复
热议问题