English 中文(简体)
任务执行失败:反应性-想象力-活动:反弹
原标题:Execution failed for task :react-native-vision-camera:compileDebugKotlin

我刚刚将一个反应性项目升级到第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?

问题回答

这实际上只是一个答案,但经过了同样的问题。 不清楚支助是否超出此点。





相关问题
HandleClick not being recognized as a prop

I m trying to get my menu to show when I click the sidebar, but I m getting an error "react-dom.development.js:86 Warning: React does not recognize the handleClick prop on a DOM " import { ...

Is there an equivalent to localStorage in React Native?

I d like to implement the equivalent to the javascript localStorage in my React Native app. But I m unsure how to set. To function how I want it to, I would like the localStorage to be stored every ...

Video Calling in Expo React Native Application

I am building a React Native Application using Expo and I want to integrate a 1:1 video calling functionality in the app. From what I have researched so far on the topic is that I can use SDKs of ...

热门标签