Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错NoSuchMethodException #26

Open
ejwdhr opened this issue Sep 14, 2018 · 4 comments
Open

报错NoSuchMethodException #26

ejwdhr opened this issue Sep 14, 2018 · 4 comments

Comments

@ejwdhr
Copy link

ejwdhr commented Sep 14, 2018

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;]

@yale8848
Copy link
Owner

混淆配置添加了吗?

-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等其它混淆配置请自行添加 `

@ejwdhr
Copy link
Author

ejwdhr commented Sep 14, 2018

我还没有打包哦

@ejwdhr
Copy link
Author

ejwdhr commented Sep 15, 2018

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

@yale8848
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants