Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Error trying to build for Android on latest version of React Native (0.73.0) #298

Open
psish opened this issue Dec 15, 2023 · 0 comments
Open

Comments

@psish
Copy link

psish commented Dec 15, 2023

Hello everyone,

I am facing an issue right at the start of my development process with React-Native and the DolbyIO Comms SDK.

I haven't done anything else but setting up the react native application and adding the dolby package as well as the android/build.gradle and android/app/build.gradle lines mentioned in your Getting Started guide. I also did the setup for iOS.

Running the app for iOS works great and I can access the CommsAPI, although for Android it fails with the following error:

> Task :dolbyio_comms-sdk-react-native:generateDebugBuildConfig UP-TO-DATE
> Task :dolbyio_comms-sdk-react-native:compileDebugKotlin FAILED

[...]

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':dolbyio_comms-sdk-react-native:compileDebugKotlin'.
> 'compileDebugJavaWithJavac' task (current target is 17) and 'compileDebugKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.

I've tried everything I found online related to 'compileDebugJavaWithJavac' and jvm targets but nothing seems to work.

Note that I can correctly run a react-native freshly created app that doesn't contains the comms-sdk package, on both android and ios simulators.

Here are the versions I use from my package.json:

    "@dolbyio/comms-sdk-react-native": "^3.10.1",
    "react": "18.2.0",
    "react-native": "0.73.0"

When doing the same thing but creating the react native app with version 0.70.6, it works.

Is there something I can do to fix this in react native 0.73.0?

Let me know if you guys need more info from my end.

Thanks!

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

No branches or pull requests

1 participant