Tealium / tealium-react-native

Other
12 stars 23 forks source link

fix: jvm mismatch error in react native projects using latest agp #171

Closed opxyd closed 4 months ago

opxyd commented 5 months ago

On trying to add the Tealium SDK, in the a new React Native (version 0.73.3) project, the below error occurs:

Execution failed for task ':tealium-react-native:compileDebugKotlin'.
> 'compileDebugJavaWithJavac' task (current target is 17) and 'compileDebugKotlin' task (current target is 11)
jvm target compatibility should be set to the same Java version.

It's not possible (or ideal) to run the project using Java 11 since the gradle plugin requires Java 17.

This PR tries to fix the above mentioned issue.

resolves: #170

opxyd commented 5 months ago

I am not sure if this is the right approach of it will break the SDK itself. Just wanted to bring this issue to the maintainer's attention.

I am using this sdk in one of my project by patching it with this PR's diff.

craigrouse commented 5 months ago

@opxyc We'll look into this ASAP and get back to you.