Security Exception only on Android 6

前端 未结 2 1935
滥情空心
滥情空心 2020-12-14 21:23
java.lang.SecurityException: Client must have ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to perform any location operations.

The app

2条回答
  •  隐瞒了意图╮
    2020-12-14 21:38

    This is because these permissions are dangerous permission as per new permission model of android 6.0.

    dangerous permissions need to be asked for at run time and should be checked every time before usage.

    you will have to change your implementation to adapt new permission model.

提交回复
热议问题