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 create task ':baronha_react-native-photo-editor:compileDebugAndroidTestKotlin'. #65

Open
irynamiller opened this issue Nov 7, 2023 · 4 comments

Comments

@irynamiller
Copy link

After installing the library, the project is not building anymore:

FAILURE: Build failed with an exception.

What went wrong: Execution failed for task ':tasks'.

Could not create task ':baronha_react-native-photo-editor:compileDebugAndroidTestKotlin'. Cannot use @TaskAction annotation on method AbstractKotlinCompile.execute() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

@KthProg
Copy link

KthProg commented Nov 9, 2023

Same issue here

@KthProg
Copy link

KthProg commented Nov 9, 2023

"react": "18.2.0",
"react-native": "0.72.6",

@KthProg
Copy link

KthProg commented Nov 9, 2023

I found a fix, add this to your android/build.gradle:
kotlinVersion = "1.8.22"
underneath ndkVersion in "ext"

@KthProg
Copy link

KthProg commented Nov 9, 2023

I'm getting a new error now. In any case you just need to override the kotlin version with whichever one you need. If you get issues about duplicate libraries, update the version to match the version of the duplicates (I ended up needing to change it to 1.7.22).

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