DolbyIO / comms-sdk-react-native

Dolby.io Communications SDK for React Native
https://www.npmjs.com/package/@dolbyio/comms-sdk-react-native
MIT License
8 stars 0 forks source link

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

Open psish opened 8 months ago

psish commented 8 months ago

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!