https://pastein.ru/t/OQv

  скопируйте уникальную ссылку для отправки


2021-10-22 13:52:40.712 11791-11791/ru.ozon.app.android.qa E/AndroidRuntime: FATAL EXCEPTION: main
    Process: ru.ozon.app.android.qa, PID: 11791
    java.lang.IllegalArgumentException: Unable to create converter for class ru.ozon.app.android.travel.widgets.searchresult.avia.data.TravelAviaSearchSelectLuggageResponse
        for method TravelAviaSearchResultApi.selectLuggage
        at retrofit2.Utils.methodError(Utils.java:54)
        at retrofit2.HttpServiceMethod.createResponseConverter(HttpServiceMethod.java:126)
        at retrofit2.HttpServiceMethod.parseAnnotations(HttpServiceMethod.java:85)
        at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:39)
        at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:202)
        at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
        at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
        at $Proxy64.selectLuggage(Unknown Source)
        at ru.ozon.app.android.travel.widgets.searchresult.avia.presentation.TravelAviaSearchResultViewModel.selectLuggage(TravelAviaSearchResultViewModel.kt:66)
        at ru.ozon.app.android.travel.widgets.searchresult.avia.presentation.TravelAviaSearchResultWidgetViewHolder$searchResultAdapter$1.invoke(TravelAviaSearchResultWidgetViewHolder.kt:32)
        at ru.ozon.app.android.travel.widgets.searchresult.avia.presentation.TravelAviaSearchResultWidgetViewHolder$searchResultAdapter$1.invoke(TravelAviaSearchResultWidgetViewHolder.kt:22)
        at ru.ozon.app.android.travel.widgets.searchresult.avia.presentation.adapter.TravelAviaSearchResultAdapterDelegateKt$inflateAndBindLuggageTabView$$inlined$apply$lambda$1.onClick(TravelAviaSearchResultAdapterDelegate.kt:107)
        at android.view.View.performClick(View.java:8160)
        at android.view.View.performClickInternal(View.java:8137)
        at android.view.View.access$3700(View.java:888)
        at android.view.View$PerformClick.run(View.java:30236)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:246)
        at android.app.ActivityThread.main(ActivityThread.java:8506)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
     Caused by: java.lang.IllegalArgumentException: Avoid use reflection for parsing models. Add JsonClass(generateAdapter = true) annotation over your class: ru.ozon.app.android.travel.widgets.searchresult.avia.data.TravelAviaSearchSelectLuggageResponse
        at ru.ozon.app.android.network.serialize.OzonKotlinJsonAdapterFactory.create(OzonKotlinJsonAdapterFactory.kt:27)
        at com.squareup.moshi.Moshi.adapter(Moshi.java:145)
        at com.squareup.moshi.Moshi.adapter(Moshi.java:105)
        at retrofit2.converter.moshi.MoshiConverterFactory.responseBodyConverter(MoshiConverterFactory.java:89)
        at retrofit2.Retrofit.nextResponseBodyConverter(Retrofit.java:362)
        at retrofit2.Retrofit.responseBodyConverter(Retrofit.java:345)
        at retrofit2.HttpServiceMethod.createResponseConverter(HttpServiceMethod.java:124)
        at retrofit2.HttpServiceMethod.parseAnnotations(HttpServiceMethod.java:85) 
        at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:39) 
        at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:202) 
        at retrofit2.Retrofit$1.invoke(Retrofit.java:160) 
        at java.lang.reflect.Proxy.invoke(Proxy.java:1006) 
        at $Proxy64.selectLuggage(Unknown Source) 
        at ru.ozon.app.android.travel.widgets.searchresult.avia.presentation.TravelAviaSearchResultViewModel.selectLuggage(TravelAviaSearchResultViewModel.kt:66) 
        at ru.ozon.app.android.travel.widgets.searchresult.avia.presentation.TravelAviaSearchResultWidgetViewHolder$searchResultAdapter$1.invoke(TravelAviaSearchResultWidgetViewHolder.kt:32) 
        at ru.ozon.app.android.travel.widgets.searchresult.avia.presentation.TravelAviaSearchResultWidgetViewHolder$searchResultAdapter$1.invoke(TravelAviaSearchResultWidgetViewHolder.kt:22) 
        at ru.ozon.app.android.travel.widgets.searchresult.avia.presentation.adapter.TravelAviaSearchResultAdapterDelegateKt$inflateAndBindLuggageTabView$$inlined$apply$lambda$1.onClick(TravelAviaSearchResultAdapterDelegate.kt:107) 
        at android.view.View.performClick(View.java:8160) 
        at android.view.View.performClickInternal(View.java:8137) 
        at android.view.View.access$3700(View.java:888) 
        at android.view.View$PerformClick.run(View.java:30236) 
        at android.os.Handler.handleCallback(Handler.java:938) 
        at android.os.Handler.dispatchMessage(Handler.java:99) 
        at android.os.Looper.loop(Looper.java:246) 
        at android.app.ActivityThread.main(ActivityThread.java:8506) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)