[안드로이드 스튜디오] 푸시 메시지 발송 시 앱이 강제 종료되는 오류
문제
E/MyLikeActivity: DataSnapshot { key = omfMOcZKwlMrxv2rAlkrcLC9fLn1, value = {qlLUy5dR38RCumYLMxOgbPn9ptp2=true} }
D/CompatibilityChangeReporter: Compat change id reported: 147798919; UID 10121; state: ENABLED
W/elee.dating_ap: Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (greylist,core-platform-api, reflection, allowed)
Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (greylist,core-platform-api, reflection, allowed)
W/elee.dating_ap: Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (greylist,core-platform-api, reflection, allowed)
E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-1
Process: com.shinyelee.dating_app, PID: 6414
java.lang.IllegalArgumentException: Unable to create call adapter for class java.lang.Object
for method NotiAPI.postNotification
at retrofit2.ServiceMethod$Builder.methodError(ServiceMethod.java:751)
at retrofit2.ServiceMethod$Builder.createCallAdapter(ServiceMethod.java:236)
at retrofit2.ServiceMethod$Builder.build(ServiceMethod.java:161)
at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:169)
at retrofit2.Retrofit$1.invoke(Retrofit.java:146)
at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
at $Proxy1.postNotification(Unknown Source)
at com.shinyelee.dating_app.message.MyLikeActivity$testPush$1.invokeSuspend(MyLikeActivity.kt:136)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Caused by: java.lang.IllegalArgumentException: Could not locate call adapter for class java.lang.Object.
Tried:
* retrofit2.ExecutorCallAdapterFactory
at retrofit2.Retrofit.nextCallAdapter(Retrofit.java:240)
at retrofit2.Retrofit.callAdapter(Retrofit.java:204)
at retrofit2.ServiceMethod$Builder.createCallAdapter(ServiceMethod.java:234)
... 12 more
V/FA: Recording user engagement, ms: 3188
I/Process: Sending signal. PID: 6414 SIG: 9
Disconnected from the target VM, address: 'localhost:9658', transport: 'socket'
해결 방법 (5) Retrofit과 Gson 버전 확인
E/FirebaseMessaging: Topic sync or token retrieval failed on hard failure exceptions: java.util.concurrent.ExecutionException: java.io.IOException: SERVICE_NOT_AVAILABLE. Won't retry the operation.
해결 방법 (6) Cold Boot Now
해결 방법 (7) AndroidManifest.xml 수정
해결 방법 (8) Home time zone 변경
2022-06-22 10:21:31.529 3831-3866/com.shinyelee.dating_app E/FirebaseMessaging: Topic sync or token retrieval failed on hard failure exceptions: java.util.concurrent.ExecutionException: java.io.IOException: SERVICE_NOT_AVAILABLE. Won't retry the operation.
참고
반응형