Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao enviar aluno para servidor.

Estou utilizando um celular como emulador da aplicação. Ao enviar o aluno o android studio aponta o seguinte erro.

08-09 17:43:36.326 29364-29364/br.com.alura.agenda E/AndroidRuntime: FATAL EXCEPTION: main
    Process: br.com.alura.agenda, PID: 29364
    java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations.
        at android.os.Parcel.readException(Parcel.java:1943)
        at android.os.Parcel.readException(Parcel.java:1889)
        at com.google.android.gms.location.internal.zzi$zza$zza.zza(Unknown Source:34)
        at com.google.android.gms.location.internal.zzk.zza(Unknown Source:25)
        at com.google.android.gms.location.internal.zzl.zza(Unknown Source:5)
        at com.google.android.gms.location.internal.zzd$1.zza(Unknown Source:10)
        at com.google.android.gms.location.internal.zzd$1.zza(Unknown Source:2)
        at com.google.android.gms.common.api.internal.zza$zza.zzb(Unknown Source:0)
        at com.google.android.gms.common.api.internal.zzg.zza(Unknown Source:50)
        at com.google.android.gms.common.api.internal.zzg.zzb(Unknown Source:0)
        at com.google.android.gms.common.api.internal.zzl.zzb(Unknown Source:2)
        at com.google.android.gms.common.api.internal.zzj.zzb(Unknown Source:75)
        at com.google.android.gms.location.internal.zzd.requestLocationUpdates(Unknown Source:5)
        at br.com.alura.agenda.Localizador.onConnected(Localizador.java:43)
        at com.google.android.gms.common.internal.zzk.zzk(Unknown Source:109)
        at com.google.android.gms.common.api.internal.zzj.zzi(Unknown Source:22)
        at com.google.android.gms.common.api.internal.zzh.zzpx(Unknown Source:92)
        at com.google.android.gms.common.api.internal.zzh.onConnected(Unknown Source:21)
        at com.google.android.gms.common.api.internal.zzl.onConnected(Unknown Source:7)
        at com.google.android.gms.common.api.internal.zzc.onConnected(Unknown Source:5)
        at com.google.android.gms.common.internal.zzj$zzg.zzqL(Unknown Source:96)
        at com.google.android.gms.common.internal.zzj$zza.zzc(Unknown Source:62)
        at com.google.android.gms.common.internal.zzj$zza.zzw(Unknown Source:2)
        at com.google.android.gms.common.internal.zzj$zzc.zzqN(Unknown Source:37)
        at com.google.android.gms.common.internal.zzj$zzb.handleMessage(Unknown Source:141)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6592)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:769)
1 resposta
solução!

Fala ai Bruno, de boa ?

Parece que o problema que está tendo é referente a permissões do aplicativo.

Acho que você não deve ter aceito alguma permissão, nesse caso de localização.

Dá uma olhada nas permissões solicitadas.