yale8848/RetrofitCache

报错NoSuchMethodException

ejwdhr opened this issue · 4 comments

Mobile:

Android OS:

NetWork:

LIB Version:


报错了,是我使用的姿势不对吗。。

09-14 16:50:03.380 15736-15736/com.whfp.tongpao W/retrofitcache: java.lang.NoSuchMethodException: toRequest [class [Ljava.lang.Object;]
09-14 16:50:10.548 15736-15736/com.whfp.tongpao W/retrofitcache: java.lang.NoSuchMethodException: toRequest [class [Ljava.lang.Object;]
09-14 16:50:10.603 15736-15736/com.whfp.tongpao W/System.err: at ren.yale.android.retrofitcachelibrx2.intercept.CacheForceInterceptorNoNet.intercept(CacheForceInterceptorNoNet.java:45)
09-14 16:50:25.065 15736-15736/com.whfp.tongpao W/retrofitcache: java.lang.NoSuchMethodException: toRequest [class [Ljava.lang.Object;]

混淆配置添加了吗?

-dontwarn ren.yale.android.retrofitcachelibrx2.**
-keep class ren.yale.android.retrofitcachelibrx2.** { *; }
-keepclasseswithmembernames class  retrofit2.adapter.rxjava2.BodyObservable { *; }
-keepclasseswithmembernames class  retrofit2.adapter.rxjava2.ResultObservable { *; }
-keepclasseswithmembernames class  retrofit2.adapter.rxjava2.CallEnqueueObservable { *; }
-keepclasseswithmembernames class  retrofit2.adapter.rxjava2.CallExecuteObservable { *; }
-keepclasseswithmembernames class retrofit2.Retrofit { *; }
-keepclasseswithmembernames class retrofit2.ServiceMethod { *; }
-keepclasseswithmembernames class retrofit2.OkHttpCall { *; }

` #retrofit2,okhttp3,rxjava2等其它混淆配置请自行添加 `

我还没有打包哦

没有混淆跟混淆配置应该没有关系吧。

1.可以把你配置贴出来看看;
2.Exception信息帖全一点;