我们的应用程序与此有关。我们使用GMS 11.8.0
java.lang.IllegalStateException: Task is already complete
at com.google.android.gms.tasks.zzn.addOnSuccessListener(zzn.java)
addOnCompleteListener(zzn.java)
setException(zzn.java)
at com.google.android.gms.common.api.internal.zzcn.zza(zzcn.java)
at com.google.android.gms.common.api.internal.zzo.onCancel(zzo.java)
at com.google.android.gms.common.SupportErrorDialogFragment.onCancel(SupportErrorDialogFragment.java)
我们的Android代码是
fusedLocationProviderClient
.requestLocationUpdates(locationRequest, locationCallback, looper)
.addOnCompleteListener(
task -> {
...
});
我对此异常感到困惑,如何发生此异常?