我刚刚将一个反应性项目升级到第0.73版(https://react-native- community.github.io/up levels-helper/? from=0.72.7&to=0.73.0)。
The project was already making use of react-native-vision-camera 3.6.10 for a feature that reads barcodes.
However, when I try to build the Android apk I get the error:
> Task :react-native-vision-camera:compileDebugKotlin
e: file:///Users/user/Documents/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraDevicesManager.kt:74:3 hasConstants overrides nothing
e: file:///Users/user/Documents/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessor/VisionCameraProxy.kt:38:58 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type JavaScriptContextHolder?
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task :react-native-vision-camera:compileDebugKotlin .
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
I ve tried downgrading the kotlin version 1.8.0, to 1.6.20 and 1.7.21, as set in react-native-vision-camera and also mentioned in some comments: https://github.com/mrousavy/react-native-vision-camera/issues/1012#issuecomment-1665622677
But it didn t make it... The errors get even worse... Any ideas how I could fix this? Or how could I find the proper kotlin version?