V3.5.0 在Android 7.1.2 上 调用OkHttps.async().setOnResBean崩溃
lyongfly opened this issue · 2 comments
lyongfly commented
java.lang.IllegalStateException: 没有可调用的方法
at com.ejlchina.okhttps.AHttpTask.callbackMethod(AHttpTask.java:534)
at com.ejlchina.okhttps.AHttpTask.lambda$complexOnResponse$6$AHttpTask(AHttpTask.java:499)
at com.ejlchina.okhttps.-$$Lambda$AHttpTask$JbCJE3DAjf7jowdYOuk_zUqJZVA.run(lambda)
at com.ejlchina.okhttps.AHttpTask$2.run(AHttpTask.java:473)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
static final String OnCallbackMethod = Consumer.class.getDeclaredMethods()[0].getName();
得到的不是 accept ,而是 -java_util_function_Consumer_lambda$1
troyzhxu commented
好的,多谢反馈,将在 v3.5.1
中修复。
troyzhxu commented
fixed in v3.5.1
: https://github.com/ejlchina/okhttps/releases/tag/v3.5.1