Android Gradle Plugin 1.3.0 + Retrolambda breaks compilation of tests
See original GitHub issueHello, we’ve updated Android Gradle Plugin to 1.3.0 (didn’t touch anything but this) and now tests with Robolectric does not compile with following error:
:app:compileRetrolambdaRobolectricDebug
:app:preRobolectricDebugUnitTestBuild UP-TO-DATE
:app:prepareRobolectricDebugUnitTestDependencies
:app:processRobolectricDebugUnitTestJavaRes
:app:compileRobolectricDebugUnitTestJavaWithJavac
An exception has occurred in the compiler (1.8.0_45). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.invoke.MethodType not found
:app:compileRobolectricDebugUnitTestJavaWithJavac FAILED
robolectric
is flavor with robolectric tests.
Looks like it’s related to #23.
I can file an issue on b.android.com if it’s problem of Android Gradle Plugin.
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (2 by maintainers)
Top Results From Across the Web
New Build System - Android Studio Project Site
New Early Preview of Android Gradle Plugin 2.5 ... Disable incremental java compilation when retro-lambda is used. ... 1.3.0 (2015/07/30).
Read more >Gradle Plugins - AspectJ Gradle - The Android Arsenal
A Gradle plugin which enables AspectJ for Android builds. Supports writing code with AspectJ-lang in .aj files and in java-annotation style.
Read more >Retrolambda - Jack is required to support java 8 - warning fix
Tested it with android gradle plugin version 2.1.0, buildToolsVersion 24, retrolamba plugin 3.2.5 and 3.3.0-beta4 (latest) and the info message ...
Read more >A gradle plugin for getting java lambda support in java 6, 7 and ...
Android Gradle Plugin 1.3.0 + Retrolambda breaks compilation of tests. :app:compileRetrolambdaRobolectricDebug :app:preRobolectricDebugUnitTestBuild ...
Read more >GitHub - luontola/retrolambda: Backport of Java 8's lambda ...
Retrolambda can be run as a Maven plugin, Gradle plugin or command line ... it's the easiest to use Java 8, without Retrolamba,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I found my solution.
As said by @stepango at #61 I change my app.gradle file:
Thanks again @ZeroBrain for the support.
Thanks for your answer.
I have tried to change as you said, but it doesn’t change the error. I have made the suggested edit in my “gradle-wrapper.properties” file and not in “gradle.properties” file as you suggest. In this project i haven’t “gradle.properties” file.
I check also my GRADLE_USER_HOME env variable and I see:
so I also tried:
Looking into
~/.gradle/wrapper/dists/
folder I see