Solucionado (ver solução)
Solucionado
(ver solução)
4
respostas

Erro ao localizar os alunos no mapa

/AndroidRuntime: FATAL EXCEPTION: main
                  Process: br.com.embrapa.capiacu, PID: 15256
                  java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations.
                      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.zzcda.zza(Unknown Source)
                      at com.google.android.gms.internal.zzcdd.zza(Unknown Source)
                      at com.google.android.gms.internal.zzcdj.zza(Unknown Source)
                      at com.google.android.gms.internal.zzccc.zza(Unknown Source)
                      at com.google.android.gms.internal.zzbay.zzb(Unknown Source)
                      at com.google.android.gms.internal.zzbca.zze(Unknown Source)
                      at com.google.android.gms.internal.zzbcx.zze(Unknown Source)
                      at com.google.android.gms.internal.zzbcp.zze(Unknown Source)
                      at com.google.android.gms.internal.zzccb.requestLocationUpdates(Unknown Source)
                      at br.com.embrapa.capiacu.Localizador.onConnected(Localizador.java:44)
                      at com.google.android.gms.common.internal.zzac.zzn(Unknown Source)
                      at com.google.android.gms.internal.zzbcp.zzm(Unknown Source)
                      at com.google.android.gms.internal.zzbcd.zzpY(Unknown Source)
                      at com.google.android.gms.internal.zzbcd.onConnected(Unknown Source)
                      at com.google.android.gms.internal.zzbcx.onConnected(Unknown Source)
                      at com.google.android.gms.internal.zzbbi.onConnected(Unknown Source)
                      at com.google.android.gms.common.internal.zzaa.onConnected(Unknown Source)
                      at com.google.android.gms.common.internal.zzn.zzrj(Unknown Source)
                      at com.google.android.gms.common.internal.zze.zzs(Unknown Source)
                      at com.google.android.gms.common.internal.zzi.zzrk(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.app.ActivityThread.main(ActivityThread.java:6123)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
W/DynamiteModule: Local module descriptor class for com.google.android.gms.googlecertificates not found.
I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:4
I/DynamiteModule: Selected remote version of com.google.android.gms.googlecertificates, version >= 4
W/System: ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/00000040/n/armeabi-v7a
W/System: ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/00000040/n/armeabi
4 respostas

Oi Vanessa, tudo bem ?

Você colocou as permissões necessárias no manifest ?

Sim, Matheus. Inclusive funcionava...mas parou de funcionar sem que tivesse alterado nada no código.

  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
solução!

Faz um teste para gente ?

Vai em configurações, aplicativos, procura o que está desenvolvendo e vê as permissões, ativa todas que precisarem.

Funcionou... Vou tentar colocar o codigo em tempo de execução.. muito obrigada.