-
Notifications
You must be signed in to change notification settings - Fork 27
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
java.lang.NoSuchMethodError: No virtual method #30
Comments
@Yarikx Same issue |
Wow, that's surprising. It's actually compiled with retrolambda into a single jar, but if it creates such problems I might just undo all the lambdas in the code. @wjs9715 @SaeedMasoumi Is it happening only in proguarded builds? |
Using Android Studio 3.0 with java 8, debug build |
Adding latest retrolambda 'me.tatarka:gradle-retrolambda:3.6.1' solve the problem, but... AS giving nice error:
|
@wjs9715 No it happened in both proguarded and non-proguarded builds |
@Yarikx Any update? |
Ok, I found how to reproduce it. It indeed happens for some lambdas ONLY with new Android Java 8 desugaring. Looks more like a bug in Google tool (as it's still alpha version), I'll investigate it a bit more for now. In the worst case, I'll just unwrap all the lambdas, but I hope I'll find a better way. As a workaround, you can still disable new Java 8 desugaring and enable retrolambda instead. |
FWIW, this is a bug in the Gradle Java 8 language feature desugaring that is tracked in https://issuetracker.google.com/issues/62456849 |
Hello, now I am using reductor for the android project.
For the Store, I had no problem subscribing and canceling the subscription with the retrolambda, but when I use the java 8 lambda expression, I get a following error when I try to cancel the subscription.
java.lang.NoSuchMethodError: No virtual method com_yheriatovych_reductor_Store$$Lambda$2_lambda$subscribe$0(Lcom/yheriatovych/reductor/StateChangeListener;)V in class Lcom/yheriatovych/reductor/Store; or its super classes (declaration of 'com.yheriatovych.reductor.Store' appears in /data/app/com.queuehop.deserteagle-1/base.apk) at com.yheriatovych.reductor.Store$$Lambda$2.cancel(Unknown Source)
Is reductor not compatible with the java's lamda statement?
The text was updated successfully, but these errors were encountered: