Questions tagged [retrolambda]

Retrolambda is a backport of Java 8's lambda expressions to Java 7, 6 and 5

Retrolambda lets you run Java 8 code with lambda expressions, method references and try-with-resources statements on Java 7, 6 or 5. It does this by transforming your Java 8 compiled bytecode so that it can run on an older Java runtime. After the transformation they are just a bunch of normal .class files, without any additional runtime dependencies.

The GitHub project can be found here: https://github.com/orfjackal/retrolambda

103 questions
0
votes
1 answer

How to setup CircleCI environment JAVA7_HOME for RetroLambda

I am using retrolambda in my Android application, and using circleci.com as continuous integration for my github repo. the problem is I have configured my local mac environment for Java_Home and Java7_Home, and everything is okay, but I don't know…
Mohsen Mirhoseini
  • 8,454
  • 5
  • 34
  • 59
0
votes
1 answer

Error:Execution failed for task ':app:processStagingDebugResources'

I'm currently working on custom view and have the next issue. I've created custom attributes and in case if I don't use enum everything is okay.
vchornenyi
  • 336
  • 5
  • 17
0
votes
1 answer

How to remove lamba library in android?

I have started coding on a pre written code by some other developer and it has : 'me.tatarka.retrolambda' , what is its impact on the size of the apk. These are the lines in gradle file; apply plugin: 'me.tatarka.retrolambda' retrolambda { jvmArgs…
Samar
  • 21
  • 1
  • 5
0
votes
1 answer

Lambda method reference to Function throws NoClassDefFoundError

I am using Retrolambda for Android with Java 8 and I ran into a runtime fatal exception when saving a lambda method reference into Android's Function interface throwing a java.lang.NoClassDefFoundError. After wasting some time checking my own…
Alqueraf
  • 1,148
  • 1
  • 11
  • 26
0
votes
2 answers

java.lang.IllegalStateException: Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created

I am trying to combine retrofit 2 with RxJava and Realm, by saving the response of the service call returned by the retrofit observable to local database using realm. So i get an exception saying that Realm access from incorrect thread. Here is my…
Zeyad Gasser
  • 1,516
  • 21
  • 39
0
votes
1 answer

Retro lambda Configuration issue on Android Studio 2.0 Beta 6

I have just started with Rx-Android and Retro Lambda. I am creating a hello world project. I followed the instruction but project doesn't compile. I got an error Error:Execution failed for task ':mobile:compileDebugJavaWithJavac'. A problem…
0
votes
0 answers

Long time to build apk via gradle.

I am working on an Android project, using gradle for building. Also we have different libraries like RxJava, Retrolambda, HttpOk and few more. My issue is the build time to build apk is somewhere around 3.x min which is quite pain for development…
user2662821
  • 225
  • 3
  • 12
0
votes
1 answer

Lambda expression turns back into an anonymous class in Android studio

When I write a lambda expression in Android studio, it sometimes turns itself into a normal anonymous class, and I can't bring it back. How can I prevent the IDE from doing this? And what is the cause? If I click on the green highlighted area: It…
Kidades
  • 600
  • 2
  • 9
  • 26
0
votes
1 answer

AWS device farm gradle plugin does not work with retrolambda

Following the guide- Setting up the AWS Device Farm Gradle Plugin, I set up my application and ran ./gradlew devicefarmUpload but I ran into a lot of errors. On inspection I realized, the error was for every time I used a lambda expression (via…
Vedant Agarwala
  • 18,146
  • 4
  • 66
  • 89
0
votes
2 answers

Android, Gradle : RetroLambda not working

I am working on an Android application and I came up with RetroLambda tool, with which I can use Lambda expressions in Android app(So much win!!). Unfortunately it is not working. I am posting my Gradle files for app and overall. Kindly let me know…
We are Borg
  • 5,117
  • 17
  • 102
  • 225
0
votes
1 answer

RxAndroid aborts or does not build when Play Services is added

I'm having some issues getting RxAndroid and Google Play Services running together or even build the project in Android Studio after adding Google Play Services. I've used the following 2 helpful sites as references: How to setup retrolambda and…
-1
votes
2 answers

What is the use of Retrolambda?

What is the use of Retrolambda? Where do we use the Retrolambda framework?
Alis
  • 193
  • 1
  • 2
  • 10
-1
votes
1 answer

Error:incompatible types: DeviceCheckCallback is not a functional interface

I have an interface that was once functional. Now I'd like it to have more abstract methods so I added them to the interface and changed all implementations to override those methods. I use retrolambda in my project. When I run the app I get the…
Booyaches
  • 1,669
  • 4
  • 27
  • 40
1 2 3 4 5 6
7