2
respostas

Token ainda nao gerado

Olá, peguei o projeto que é oferecido aqui para continuar o curso, pois meu do Web Service 2 não estava gerando token no firebase, no entanto, esse tambem não esta. O problema pode ser na maquina ou algo assim?

2021-02-08 15:35:33.012 26429-26501/com.example.webservicep3 I/FA: App measurement is starting up, version: 13001
2021-02-08 15:35:33.012 26429-26501/com.example.webservicep3 I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
2021-02-08 15:35:33.013 26429-26501/com.example.webservicep3 I/FA: To enable faster debug mode event logging run:
      adb shell setprop debug.firebase.analytics.app com.example.webservicep3
2021-02-08 15:35:33.013 26429-26501/com.example.webservicep3 D/FA: Debug-level message logging enabled
2021-02-08 15:35:33.796 26429-26501/com.example.webservicep3 I/FA: Tag Manager is not found and thus will not be used
2021-02-08 15:35:33.837 26429-26501/com.example.webservicep3 D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=ListaAlunosActivity, firebase_screen_id(_si)=-81281329733558732}]
2021-02-08 15:35:35.255 26429-26501/com.example.webservicep3 D/FA: Connected to remote service
2021-02-08 15:35:36.811 25214-26690/? W/FA-SVC: Service response is missing Install Referrer install timestamp
2021-02-08 15:35:36.835 26702-26758/? W/ConnectionStatusConfig: Dynamic lookup for intent failed for action: com.google.android.gms.auth.key.retrieval.service.START
2021-02-08 15:35:41.806 26429-26501/com.example.webservicep3 W/ConnectionTracker: Exception thrown while unbinding
    java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzef@2fa7b13
        at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1499)
        at android.app.ContextImpl.unbindService(ContextImpl.java:1638)
        at android.content.ContextWrapper.unbindService(ContextWrapper.java:714)
        at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
        at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
        at com.google.android.gms.measurement.internal.zzdr.disconnect(Unknown Source:224)
        at com.google.android.gms.measurement.internal.zzdr.zzcz(Unknown Source:241)
        at com.google.android.gms.measurement.internal.zzdr.zzc(Unknown Source:293)
        at com.google.android.gms.measurement.internal.zzds.run(Unknown Source:2)
        at com.google.android.gms.measurement.internal.zzw.run(Unknown Source:7)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at com.google.android.gms.measurement.internal.zzbs.run(Unknown Source:20)
2021-02-08 15:35:44.593 26429-26501/com.example.webservicep3 D/FA: Setting user property (FE): _sid
2021-02-08 15:35:44.703 26429-26501/com.example.webservicep3 D/FA: Logging event (FE): session_start(_s), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=ListaAlunosActivity, firebase_screen_id(_si)=-81281329733558732}]
2021-02-08 15:35:44.763 26429-26501/com.example.webservicep3 D/FA: Connected to remote service
2021-02-08 15:35:44.800 25214-26690/? D/FA-SVC: Removing user property: ga_session_id(_sid)
2021-02-08 15:35:44.802 25214-26690/? D/FA-SVC: User property removed: ga_session_id(_sid)
2021-02-08 15:35:46.492 25214-26690/? D/FA-SVC: Uploading events. Elapsed time since last upload attempt (ms): 10014
2021-02-08 15:35:47.076 25214-26690/? D/FA-SVC: Uploading events. Elapsed time since last upload attempt (ms): 47
2021-02-08 15:35:47.532 25214-26690/? W/FA-SVC: Config not found. Using empty config. appId: com.example.webservicep3
2021-02-08 15:35:47.556 25214-26690/? W/FA-SVC: Did not find measurement config or missing version info. appId: com.example.webservicep3
2021-02-08 15:35:47.560 25214-26690/? D/FA-SVC: Uploading events. Elapsed time since last upload attempt (ms): 509
2021-02-08 15:35:49.837 26429-26501/com.example.webservicep3 W/ConnectionTracker: Exception thrown while unbinding
    java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzef@2fa7b13
        at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1499)
        at android.app.ContextImpl.unbindService(ContextImpl.java:1638)
2 respostas
at android.content.ContextWrapper.unbindService(ContextWrapper.java:714)
        at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
        at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
        at com.google.android.gms.measurement.internal.zzdr.disconnect(Unknown Source:224)
        at com.google.android.gms.measurement.internal.zzdr.zzcz(Unknown Source:241)
        at com.google.android.gms.measurement.internal.zzdr.zzc(Unknown Source:293)
        at com.google.android.gms.measurement.internal.zzds.run(Unknown Source:2)
        at com.google.android.gms.measurement.internal.zzw.run(Unknown Source:7)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at com.google.android.gms.measurement.internal.zzbs.run(Unknown Source:20)
2021-02-08 15:36:09.869 26880-26923/? I/FA: App measurement initialized, version: 31000
2021-02-08 15:36:09.869 26880-26923/? I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
2021-02-08 15:36:09.869 26880-26923/? I/FA: To enable faster debug mode event logging run:
      adb shell setprop debug.firebase.analytics.app com.shopee.br
2021-02-08 15:36:09.869 26880-26923/? D/FA: Debug-level message logging enabled
2021-02-08 15:36:10.698 26880-26923/? D/FA: Connected to remote service
2021-02-08 15:36:13.687 27022-27061/? W/ConnectionStatusConfig: Dynamic lookup for intent failed for action: com.google.android.gms.auth.key.retrieval.service.START
2021-02-08 15:40:04.720 27240-27543/? I/FA: App measurement initialized, version: 35000
2021-02-08 15:40:04.720 27240-27543/? I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
2021-02-08 15:40:04.721 27240-27543/? I/FA: To enable faster debug mode event logging run:
      adb shell setprop debug.firebase.analytics.app com.google.android.apps.messaging
2021-02-08 15:40:04.721 27240-27543/? D/FA: Debug-level message logging enabled
2021-02-08 15:40:04.913 27240-27543/? D/FA: Connected to remote service
2021-02-08 15:40:05.862 27588-27655/? W/ConnectionStatusConfig: Dynamic lookup for intent failed for action: com.google.android.gms.auth.key.retrieval.service.START
2021-02-08 15:40:09.972 27240-27543/? W/ConnectionTracker: Exception thrown while unbinding
    java.lang.IllegalArgumentException: Service not registered: lt@36b0398
        at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1499)
        at android.app.ContextImpl.unbindService(ContextImpl.java:1638)
        at android.content.ContextWrapper.unbindService(ContextWrapper.java:714)
        at ci.f(:com.google.android.gms.dynamite_measurementdynamite@205016050@20.50.16 (040406-0):1)
        at ci.d(:com.google.android.gms.dynamite_measurementdynamite@205016050@20.50.16 (040406-0):2)
        at lu.E(:com.google.android.gms.dynamite_measurementdynamite@205016050@20.50.16 (040406-0):9)
        at le.a(:com.google.android.gms.dynamite_measurementdynamite@205016050@20.50.16 (040406-0):3)
        at eg.run(:com.google.android.gms.dynamite_measurementdynamite@205016050@20.50.16 (040406-0):3)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at iz.run(:com.google.android.gms.dynamite_measurementdynamite@205016050@20.50.16 (040406-0):5)

Oi Matheus, tudo bem?

Acabei de baixar o projeto do curso oferecido nesta atividade e está gerando o token normalmente:

2021-02-10 08:30:55.153 26725-26772/br.com.alura.agenda D/token firebase: Refreshed token: dcdN35FMOeQ:APA91bHRmO9f-itM6UniNMJ_tm_XuxTk3ucg_7Zl0Gdji-jvUMZZvp-JY4XIXUrsNJLHbv8-03-0wsNfhquJ_hnHQpIzxn37tUH-R3NEwLpn4D1xvG-xgtpczsY4-uR9BSDInKU9c8dp

Geralmente o problema para gerar o token está relacionado ao arquivo google-services.json do projeto do Firebase, verifique se o mesmo está dentro do diretório app do projeto. Depois disso, desinstale o App do dispositivo e execute novamente para gerar um novo.

[]s