-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library compile issue (Android) #30
Comments
Hi @KushaanKapoor, thanks for posting an issue! It sounds like you're using Java 7, an old version of Java, could that be the issue? What does On this page https://reactnative.dev/docs/next/environment-setup, you should find a way to install a Java version that's suitable for React Native Otherwise, you might have those 2 lines in your project: compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
} forcing you to use Java 7. If that's the case, I think you can just remove them, they're not in the default RN template anymore |
Actually never mind, I just encountered this bug myself despite having proper Java versions. I'll post a fix tonight! |
@KushaanKapoor should be fixed in v0.2.1 of |
error: lambda expressions are not supported in -source 1.7
mainHandler.post(() -> promise.resolve(fibonacci(intensity)));
^
(use -source 8 or higher to enable lambda expressions)
1 error
FAILURE: Build failed with an exception.
I am getting this when trying to build the app on my android device. Any solutions?
The text was updated successfully, but these errors were encountered: