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.
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
andandroid/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:
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:
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!