react-native-vision-camera: πŸ› latest version of gradle 1.6.20 is not supported

What were you trying to do?

i have installed a latest version of android studio and nodejs v18 and setup everything correctly then i created a simple app with react-native(not Expo) that only shows button on the center the app running ok but when i installed react-native-vision-camera to use it after that whenever i run npx react-native run-android i get an error of unsupported ktolin gradle extention

Reproduceable Code

No response

What happened instead?

whenever i type npx react-native run-android i get this error:

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

i think because of the react-native-vision-camera uses version 1.5.30 of kotlin but the version i have is 1.6.20

could you update the react-native-vision-camera to support the latest version of gradle?

Relevant log output

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

Device

Lenovo ideapad gaming 3 i5 RTX3050

VisionCamera Version

2.15.4

Additional information

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 14
  • Comments: 15 (1 by maintainers)

Most upvoted comments

Can confirm same issue upgrading to RN 0.71.8

I did get around this by temporarily adding the following to the android/build.gradle file

Screenshot 2023-06-06 at 09 22 31

Can confirm same issue on RN 0.72.3 image

Can confirm same issue upgrading to RN 0.71.8

I did get around this by temporarily adding the following to the android/build.gradle file

Screenshot 2023-06-06 at 09 22 31

This done the trick for now, thank you! πŸ™

i am also having the same issue Screenshot 2023-07-12 at 8 56 43 PM