最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - EXPO - RN - Dev build failing because of expo-camera - Stack Overflow

programmeradmin2浏览0评论

I created a repo using npx create-expo-app@latest and installed expo-camera. All builds went without problems and the app was running. But then I created a new repo using the blank-typescript --template flag and I migrated the whole project. (All files where exactly the same). I installed expo-camera and now when I want to build it is failing with this error

Task :expo-camera:compileDebugKotlin e: file:///home/expo/workingdir/build/node_modules/expo-camera/android/src/main/java/expo/modules/camera/CameraViewModule.kt:257:14 Cannot access 'activeRecording': it is private in 'ExpoCameraView'

Task :expo-camera:compileDebugKotlin FAILED Execution failed for task ':expo-camera:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlinpilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction

The new app was created some weeks after the first one and some versions had changes. I changed them but the problem is still there

   "react-native": "0.76.6",
   "expo-camera": "~16.0.10",
   "expo": "~52.0.18",

I did not touch no native modules nor nothing. I am just using the bare <CameraView> component.

Since I am using Windows, I am just building for Android. I have not tried the application on iOS yet.

I created a repo using npx create-expo-app@latest and installed expo-camera. All builds went without problems and the app was running. But then I created a new repo using the blank-typescript --template flag and I migrated the whole project. (All files where exactly the same). I installed expo-camera and now when I want to build it is failing with this error

Task :expo-camera:compileDebugKotlin e: file:///home/expo/workingdir/build/node_modules/expo-camera/android/src/main/java/expo/modules/camera/CameraViewModule.kt:257:14 Cannot access 'activeRecording': it is private in 'ExpoCameraView'

Task :expo-camera:compileDebugKotlin FAILED Execution failed for task ':expo-camera:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction

The new app was created some weeks after the first one and some versions had changes. I changed them but the problem is still there

   "react-native": "0.76.6",
   "expo-camera": "~16.0.10",
   "expo": "~52.0.18",

I did not touch no native modules nor nothing. I am just using the bare <CameraView> component.

Since I am using Windows, I am just building for Android. I have not tried the application on iOS yet.

Share Improve this question edited Jan 21 at 18:36 Thomasino73 9226 silver badges21 bronze badges asked Jan 20 at 11:56 FacundoFacundo 133 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I just had the same issue. Upgrade expo-camera to version 16.0.13 and the error should go away. It did for me anyway.

发布评论

评论列表(0)

  1. 暂无评论