question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Retrolambda in library projects and main projects can break the build

See original GitHub issue

I 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:open
  • Created 8 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
zeshaoaaacommented, Jul 11, 2016

@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’.

Process ‘command ‘F:\DDH\java\jdk\bin\java.exe’’ finished with non-zero exit value 1

0reactions
wheelerrusscommented, Apr 29, 2015

@evant that worked for me, thanks a lot

i.e. adding

retrolambda { jvmArgs ‘-noverify’ }

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found