Retrolambda in library projects and main projects can break the build
See original GitHub issueI actually think this is related to #60.
Project setup:
- library using retro lambda
- […]
- main-project using retro lambda
Now from a gradle clean
one always needs to build twice.
The first build will fail on main-project:compileRetrolambdaDebug
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':main-project:compileRetrolambdaDebug'.
> Process 'command 'C:\Program Files\Java\jdk1.8.0_40\bin\java.exe'' finished with non-zero exit value 1
The second build succeeds. I think it’s because the repackaged files are not used the first build, but they are the second time (when it’s cached due to incremental).
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Failed to use gradle--retrolambda build project in OSX
Try moving all .java files to the root package. That worked for me.
Read more >Issue compiling from clean build #105 - GitHub
gradlew compile (Yes, separately from the last step - ... ... Retrolambda in library projects and main projects can break the build #95....
Read more >Visible to Public - Issue Tracker - Google
Is there any roadmap, when library projects can be compiled with Java 8 and lambdas? When I try to build a library module...
Read more >Realm: Create reactive mobile apps in a fraction of the time
On the “Projects” view, you can find the application level build.gradle file here: ... A ProGuard configuration is provided as part of the...
Read more >Fortunately for me Kotlin it is a Swiss Army Knife in Java world ...
You still cannot use RetroLambda library projects. False warnings for static code analysis. Each update of any plugin could break your build ......
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
@wheelerruss
retrolambda { jvmArgs ‘-noverify’ }
I added. but the error stil existing.
:app:compileRetrolambdaDebug Error:Could not create the Java Virtual Machine. Error:A fatal exception has occurred. Program will exit. Unrecognized option: -arg1 Error:Execution failed for task ‘:app:compileRetrolambdaDebug’.
@evant that worked for me, thanks a lot
i.e. adding
retrolambda { jvmArgs ‘-noverify’ }