looking for some solutions? You are welcome.

SOLVED: retrofit2.4 + adapter-rxjava2 + proguard

spring:

error as follow:

enter image description here 03-11 14:28:14.401 11858 11858 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: Unable to create call adapter for class io.reactivex.Flowable 03-11 14:28:14.401 11858 11858 E AndroidRuntime: for method RequestApis.getCameraInfo 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at retrofit2.ServiceMethod$Builder.methodError() 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at retrofit2.ServiceMethod$Builder.createCallAdapter() 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at retrofit2.ServiceMethod$Builder.build() 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at retrofit2.Retrofit.loadServiceMethod() 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at retrofit2.Retrofit$1.invoke() 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at java.lang.reflect.Proxy.invoke(Proxy.java:393) 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at $Proxy0.getCameraInfo(Unknown Source) 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at com.youlecamera.upload.helper.RetrofitHelper.getCameraInfo() 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at com.youlecamera.awsIot.IotService.bind() 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at com.youlecamera.awsIot.IotService.aZ() 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at com.youlecamera.awsIot.IotService$1.onReceive() 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:922) 03-11 14:28:14.401 11858 11858 E AndroidRuntime: ... 7 more 03-11 14:28:14.401 11858 11858 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Flowable return type must be parameterized as Flowable or Flowable 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory.get() 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at retrofit2.Retrofit.nextCallAdapter() 03-11 14:28:14.401 11858 11858 E AndroidRuntime: at retrofit2.Retrofit.callAdapter()

my proguard is:

enter image description here

i try modify proguard many times, but not work, how can i do? who can help me? thanks



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
Share:

No comments:

Recent