carrotquest / android-sdk

Conversational platform for business. Android sdk.
1 stars 1 forks source link

Ошибка при попытке инициализации в релизной сборке #26

Open fffgladevg opened 5 months ago

fffgladevg commented 5 months ago

Добрый день. В дебаг версии все работает корректно. Но при попытке инициализировать, появляется ошибка Версия SDK: 1.0.80-commonRelease retrofit:2.9.0 converter-gson:2.9.0

Carrot debug: java.lang.IllegalArgumentException: Unable to create call adapter for class al.n for method CarrotApi.connect Runtime: java.lang.RuntimeException: Unable to create application com.yumapos.customer.core.common.application.Application: java.lang.NullPointerException: item is null at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7003) at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2236) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:205) at android.os.Looper.loop(Looper.java:294) at android.app.ActivityThread.main(ActivityThread.java:8177) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971) Caused by: java.lang.NullPointerException: item is null

image Снимок экрана 2024-05-28 091620 Снимок экрана 2024-05-28 091658

AlexandrKorenchuk commented 4 months ago

photo_2024-07-03 17 15 22 тоже вылетает ошибка

1lio commented 2 months ago

тоже самое 1.0.85-commonRelease release сборка

isMinifyEnabled = true
isShrinkResources = true

CQ_CarrotService java.lang.NullPointerException: item is null

и далее ошибка

io.reactivex.exceptions.OnErrorNotImplementedException: The exception was not handled due to missing onError handler in the subscribe() method call. 
Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | java.lang.ClassCastException
    at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(SourceFile:704)
    at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(SourceFile:701)
    at io.reactivex.internal.observers.LambdaObserver.onError(SourceFile:77)
    at io.reactivex.internal.operators.observable.ObservableTake$TakeObserver.onError(SourceFile:80)
    at io.reactivex.internal.operators.observable.ObservableFlatMap$MergeObserver.checkTerminate(SourceFile:511)
    at io.reactivex.internal.operators.observable.ObservableFlatMap$MergeObserver.drainLoop(SourceFile:334)
    at io.reactivex.internal.operators.observable.ObservableFlatMap$MergeObserver.drain(SourceFile:326)
    at io.reactivex.internal.operators.observable.ObservableFlatMap$MergeObserver.onError(SourceFile:291)
    at io.reactivex.internal.operators.observable.ObservableFlatMap$MergeObserver.onNext(SourceFile:125)
    at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeOnObserver.onNext(SourceFile:58)
    at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(SourceFile:54)
    at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(SourceFile:38)
    at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(SourceFile:48)
    at io.reactivex.Observable.subscribe(SourceFile:12284)
    at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(SourceFile:35)
    at io.reactivex.Observable.subscribe(SourceFile:12284)
    at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(SourceFile:96)
    at io.reactivex.Scheduler$DisposeTask.run(SourceFile:608)
    at io.reactivex.internal.schedulers.ScheduledRunnable.run(SourceFile:66)
    at io.reactivex.internal.schedulers.ScheduledRunnable.call(SourceFile:57)
    at java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
    at java.lang.Thread.run(Thread.java:1012)

Caused by: java.lang.ClassCastException
    at androidx.appcompat.app.ToolbarActionBar$ExternalSyntheticThrowCCEIfNotNull0.m(SourceFile:0)
    at io.carrotquest_sdk.android.c.c.g.a.a(SourceFile:0)
    at io.carrotquest_sdk.android.c.c.g.a.$r8$lambda$ytV8EFD8QMtQiN30CjUrrGBv4Ik(SourceFile:0)
    at io.carrotquest_sdk.android.c.c.g.a$ExternalSyntheticLambda0.apply(SourceFile:0)
    at io.reactivex.internal.operators.observable.ObservableFlatMap$MergeObserver.onNext(SourceFile:121)
    ... 16 more