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.

[1.67.0][Android] Error on Building, Java 8 Compat

See original GitHub issue

I keep getting this error when trying to build the latest version.

Jack is required to support java 8 language features. Either enable Jack or remove sourceCompatibility JavaVersion.VERSION_1_8

I know Jack is deprecated on Android, but I can’t get it to work.

I’m using default versions of Gradle for RN56 gradle-plugin@2.3.3, gradle@3.5.1, gradle-download-task@3.4.3,

Added the compileOptions as the docs say

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

Which should support Java 8 expressions. Any ideas?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
saghulcommented, Aug 22, 2018

@cristiantx Sure thing, thank would be most welcome!

1reaction
cristiantxcommented, Aug 22, 2018

@saghul Should we include some notes on the documentation to point this should be also done? I can help on that making some small guide using @8BallBomBom information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

libGDX setup allows me to use Java 8 which crashes in Android
The desktop version runs fine (I have Java 8 installed), but my android app crashes with a NoClassDefFoundError error (BTW, the error message ......
Read more >
Use Java 8 language features and APIs - Android Developers
Discover the Java 8 language features you can use, how to properly configure your project to use them, and any known issues you...
Read more >
Java 8 Source Compatibility - PSPDFKit
DexArchiveBuilderException: Error while dexing. The dependency contains Java 8 bytecode. Please enable desugaring by adding the following to build.gradle ...
Read more >
target 8` (but still avoid Java 7+ APIs) · Issue #5269 · google ...
AFAICT cloud libraries like Firestore and Storage are still Java 7 compatible. Has a decision been made to migrate all these libraries to...
Read more >
Open Source Used In Secure Network Analytics (Stealthwatch ...
This document contains licenses and notices for open source software used in this product. With respect to the free/open source software listed in...
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