location-samples icon indicating copy to clipboard operation
location-samples copied to clipboard

Exception when subscribing to sleep data: com.google.android.gms.common.api.ApiException: 16:

Open dmseo1 opened this issue 4 years ago • 4 comments

When I run 'sleepsamplekotlin' app on Android 10 and execute subscribeToSleepSegmentUpdates(), I get error like below.

2021-04-27 11:25:49.158 6625-6625/com.android.example.sleepsamplekotlin D/MainActivity: Exception when subscribing to sleep data: com.google.android.gms.common.api.ApiException: 16: 

My test devices are Galaxy M20 and Galaxy A12, both of them are installed Android 10, and same problems occurs on both devices.

What make me more confused is, on AVDs in Android Studio(NOT physical device, Android 10 is installed), there are no problem.

On Android 11, regardless of devices' virtuality, it works fine.

I think it is caused by the version of Google Play Service, but I can't figure out exactly what is the problem.

dmseo1 avatar Apr 27 '21 02:04 dmseo1

I have the same problem. My device is Samsung m30s. Please check

aadityaguptaa avatar May 10 '21 16:05 aadityaguptaa

Still facing the same problem on my moto device. Is there any proposed solution or update by Android API devs?

blueberry404 avatar Jul 24 '21 17:07 blueberry404

Same Issue, please help

pratyaksh123 avatar Sep 08 '21 19:09 pratyaksh123

Still catching the same issue on Android 12.

YuryMyshkevich avatar Dec 29 '22 15:12 YuryMyshkevich