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

Could not determine the dependencies of task ':voximplant_react-native-foreground-service:bundleLibCompileToJarDebug'. #68

Open
kNikKumar opened this issue Dec 1, 2023 · 2 comments

Comments

@kNikKumar
Copy link

Hi,

I am getting an error on react native, android build :

Could not determine the dependencies of task ':voximplant_react-native-foreground-service:bundleLibCompileToJarDebug'.
> Could not create task ':voximplant_react-native-foreground-service:compileDebugJavaWithJavac'.
   > In order to compile Java 9+ source, please set compileSdkVersion to 30 or above

In my build.gradle I am using correct sdk versions

compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '33')
targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '33')

Java version : 17
@voximplant/react-native-foreground-service: "^3.0.2",

Is this not compatible with java 17.

@kNikKumar
Copy link
Author

Inside build.gradle of react-native-foreground-service I am seeing :

compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

Does this mean that I am need to downgrade Java version ?

@radek-treeline
Copy link

@kNikKumar this worked for me:
#65 (comment)

look at the last comment there not to omit crucial step 👍

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

2 participants