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.
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.