1

我一直在研究基于位置的 Android 应用程序。我还处理了运行时危险的位置权限。它在测试从 4.0 到 8.0 的各种设备时效果很好。

我没有其他危险的权限。

如果例外是运行时位置权限,它会显示如下内容

java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations.

但是,日志如下所示。

java.lang.SecurityException: 
  at android.os.Parcel.readException (Parcel.java:1683)
  at android.os.Parcel.readException (Parcel.java:1636)
  at com.google.android.gms.internal.zzed.zzb (Unknown Source)
  at com.google.android.gms.internal.zzcdx.zza (Unknown Source)
  at com.google.android.gms.internal.zzcea.zza (Unknown Source)
  at com.google.android.gms.internal.zzceh.zza (Unknown Source)
  at com.google.android.gms.location.zzi.zzb (Unknown Source)
  at com.google.android.gms.common.api.internal.zzd.zzb (Unknown Source)
  at com.google.android.gms.common.api.internal.zzb.zza (Unknown Source)
  at com.google.android.gms.common.api.internal.zzbr.zzb (Unknown Source)
  at com.google.android.gms.common.api.internal.zzbr.zzaik (Unknown Source)
  at com.google.android.gms.common.api.internal.zzbr.onConnected (Unknown Source)
  at com.google.android.gms.common.internal.zzac.onConnected (Unknown Source)
  at com.google.android.gms.common.internal.zzn.zzakf (Unknown Source)
  at com.google.android.gms.common.internal.zze.zzv (Unknown Source)
  at com.google.android.gms.common.internal.zzi.zzakg (Unknown Source)
  at com.google.android.gms.common.internal.zzh.handleMessage (Unknown Source)
  at android.os.Handler.dispatchMessage (Handler.java:102)
  at android.os.Looper.loop (Looper.java:154)
  at android.os.HandlerThread.run (HandlerThread.java:61)

谷歌播放控制台上的异常计数为 1216,在短时间内受影响的用户为 368。

任何帮助,将不胜感激。提前致谢

4

0 回答 0