Integration react-native-kit-ffmpeg and react-native-vision-camera in React Native

huangapple go评论62阅读模式
英文:

Integration react-native-kit-ffmpeg and react-native-vision-camera in React Native

问题

Sure, here's the translated code part:

"dependencies": {
    "ffmpeg-kit-react-native": "^5.1.0",
    "react": "18.2.0",
    "react-native": "0.71.6",
    "react-native-vision-camera": "^2.15.4"
}

And here's the error message:

> Android Gradle插件仅支持kotlin-android-extensions Gradle插件版本1.6.20及更高版本。
以下依赖项不满足所需版本:
project ':react-native-vision-camera' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30

在使用这两个包时是否存在任何问题?
英文:

"dependencies": {
"ffmpeg-kit-react-native": "^5.1.0",
"react": "18.2.0",
"react-native": "0.71.6",
"react-native-vision-camera": "^2.15.4"
}

I am integration ffmpeg-kit-react-native and react-native-vision-camera in a react native project but facing 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

Is there any issue in using these both packages?

答案1

得分: 1

我建议你尝试将react-native升级到版本0.71.8,然后在项目的android目录中打开build.gradle文件,并在buildscript ext下添加一行kotlinVersion = "1.7.0"。安装项目依赖,然后重新启动项目。

英文:

I suggest you try upgrading react-native to version 0.71.8, then open the build.gradle file in the android directory of the project, and add the line kotlinVersion = "1.7.0" under buildscript ext. Install the project dependencies, and then restart the project

huangapple
  • 本文由 发表于 2023年4月13日 16:20:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/76003215.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定