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

🐛 The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher. #1449

Closed
3 of 4 tasks
PortalDK opened this issue Feb 1, 2023 · 11 comments · Fixed by #1466
Closed
3 of 4 tasks
Labels
🐛 bug Something isn't working

Comments

@PortalDK
Copy link

PortalDK commented Feb 1, 2023

What were you trying to do?

react-native run-android

Reproduceable Code

No response

What happened instead?

The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher.
The following dependencies do not satisfy the required version:
project ':react-native-vision-camera' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30

Relevant log output

No response

Device

emulator

VisionCamera Version

^2.15.3

Additional information

@PortalDK PortalDK added the 🐛 bug Something isn't working label Feb 1, 2023
@celciusjj
Copy link

same issue here

@PortalDK
Copy link
Author

PortalDK commented Feb 2, 2023

"react-native": "0.71.1",

@Timson020
Copy link

same issue here

@dunapanta
Copy link

I have the same issue using
"react-native-vision-camera": "^2.15.4"
"react-native": "0.71.1"

any idea how to solve it?

@dunapanta
Copy link

I managed to make it work with @dcangulo solution, on path
node_modules/react-native-vision-camera/android/gradle.properties
change VisionCamera_kotlinVersion=1.5.30 to VisionCamera_kotlinVersion=1.6.20

but I don't know why this change was not included on version 2.15.4, probably need to test this solution on previous versions of react-native?

@edwin5050
Copy link

This works for me.

@fontesrp
Copy link

fontesrp commented Feb 6, 2023

The solution described here avoids changing lib files. Both work for me. Thanks!

@aniketjha9179
Copy link

Yes its worked for me after updating node_modules/react-native-vision-camera/android/gradle.properties
change VisionCamera_kotlinVersion=1.5.30 to VisionCamera_kotlinVersion=1.6.20 and after that I got a dialouge of install Android SDK build-tools 33 after installing them its worked

@myselfuser1
Copy link

@mrousavy
Copy link
Owner

Hey! I've rewritten the entire Android codebase of VisionCamera from CameraX to Camera2 in the efforts of ✨ VisionCamera V3.

I just now completed the Camera2 rewrite and I believe the core structure is running, but there might be some edge cases to iron out. Can you try and test the PR #1674 for me to see if you can still reproduce this issue here?

Here's an instruction on how you can test that: #1674 (comment)

If the issue cannot be reproduced with that version/PR anymore, then hoorayy, I fixed it! 🎉
Otherwise please let me know and I'll keep this issue open to keep track of it.

Thank you!

@fontesrp
Copy link

@mrousavy, thanks for the PR! Very impressive work with Camera2. I'll try it again shortly, but, having recently tried v3 on our app, it seems that as long as kotlin-android-extensions is present, the project won't compile with kotlinVersion set to 1.8 or higher. I'll try with the lib pointing to the PR though and post here what I find 👍

@mrousavy
Copy link
Owner

Ah sorry maybe I can remove that dependency? Not sure if I need it 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants