Skip to content
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

> Task : react-native-klarna-inapp-sdk:compileReleaseJavaWithJavac FAILED #233

Open
icarusdust opened this issue Dec 31, 2023 · 5 comments

Comments

@icarusdust
Copy link

icarusdust commented Dec 31, 2023

Describe the bug
I cannot say if it is a bug, but when I am integrating react-native-klarna-inapp-sdk into my project, and running ./gradlew assembleRelease, it is failing with the following error. Refer to the screenshot.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the documentation to integrate Klarna SDK
  2. Run the build command to build AAB or APK
  3. See error

Screenshots

Screenshot 2023-12-31 at 11 33 22

Impact Level
It is kind of urgent and blocking me from finishing my Android build.

@NMGuner
Copy link
Member

NMGuner commented Jan 2, 2024

Hi @icarusdust, the latest version of the library is developed using Java 11(similar to all recent RN libraries) and that seems to be causing this issue as I understand it. You may either need to use the previous version or update your project to use JDK 11. Can you please try one of these and let us know if it resolves this

@icarusdust
Copy link
Author

Thanks for getting back @NMGuner. Tried both options, downgraded the SDK version with different Java versions, and tried to build the latest SDK version with JDK 11. I am afraid, none of them helped.

  reason: '<>' with anonymous inner classes is not supported in -source 8
    (use -source 9 or higher to enable '<>' with anonymous inner classes)

It is higher than 9, but not sure why it is considered below 9.

@icarusdust
Copy link
Author

Anything else to check ? @NMGuner

@Mohsin-PLT
Copy link

Facing the same issue while using JDK 15, any solution for this ?

@MasoudFallahpourbaee
Copy link
Contributor

A new version is released (v2.2.1) that should resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants