Boa noite.
No Log de execução do meu aplicativo o token é gerado, mas dá erro ao enviar para o servidor. Segue o trecho do erro:
D/OkHttp: token: eAEejOU8sPA:APA91bHWs5CmPWBXabRm-nHBsqqu4IB_zBONyDb2wnvDW7Tz98qqrFU6CRlJjnDU--BCpYRTFsbX5DKM-7QDcgaFweU5IOwCIfs7MGGb-7v-KSS7X8yTklocxOm40Al_OtRIm70OA7xi
D/OkHttp: --> END POST (0-byte body)
I/FirebaseCrash: Sending crashes
V/FA: Inactivity, disconnecting from the service
D/OkHttp: <-- HTTP FAILED: java.net.SocketTimeoutException: timeout
E/onFailure chamado: timeout
D/OkHttp: <-- HTTP FAILED: java.net.SocketTimeoutException
D/AndroidRuntime: Shutting down VM
E/UncaughtException: java.lang.NullPointerException: println needs a message
at android.util.Log.println_native(Native Method)
at android.util.Log.e(Log.java:334)
at com.example.jefacb10.agenda.firebase.AgendaInstancedIdService$1.onFailure(AgendaInstancedIdService.java:38)
at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$2.run(ExecutorCallAdapterFactory.java:79)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7325)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
D/FA: Logging event (FE): app_exception(_ae), Bundle[{firebase_event_origin(_o)=crash, timestamp=1510088905808, fatal=1}]
V/FA: Using measurement service
V/FA: Connecting to remote service
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.jefacb10.agenda, PID: 16104
java.lang.NullPointerException: println needs a message
at android.util.Log.println_native(Native Method)
at android.util.Log.e(Log.java:334)
at com.example.jefacb10.agenda.firebase.AgendaInstancedIdService$1.onFailure(AgendaInstancedIdService.java:38)
at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$2.run(ExecutorCallAdapterFactory.java:79)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7325)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
I/FirebaseCrash: Sending crashes
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
I/FirebaseCrash: Response code: 200
I/FirebaseCrash: Report sent with crash report id: c592583374000000
I/Process: Sending signal. PID: 16104 SIG: 9
Application terminated.
Podem me ajudar?