VictorAlbertos / ReactiveCache

A reactive cache for Android and Java which honors the reactive chain.
Apache License 2.0
240 stars 24 forks source link

Android Studio 3 - built-in Java features #17

Closed adek closed 6 years ago

adek commented 7 years ago

I'm using your library. I'm testing new tools in Android Studio 3 Canary 1. We've got finally possibility to use Java8 built-in features without using for example retrolamda library.

My app is crashing on ReactiveCache using AS3 Java8 built-in features.

Is retrolambda dependency for this library mandatory?

 java.lang.NoSuchMethodError: No static method lambda$replace$2(Lio/reactivecache2/Provider;Lio/reactivex/Single;)Lio/reactivex/SingleSource; in class Lio/reactivecache2/Provider; or its super classes (declaration of 'io.reactivecache2.Provider' appears in /data/app/.../split_lib_dependencies_apk.apk)
                                                                  at io.reactivecache2.Provider$$Lambda$2.apply(Unknown Source)

at io.reactivex.Single.compose(Single.java:1548)

Not sure right now if this is AS3 bug or ReactiveCache. I'm still investingating this.

stefan-zobel commented 7 years ago

FWIW, this seems to be a bug in the Gradle Java 8 language feature desugaring that is tracked in https://issuetracker.google.com/issues/62456849