You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and in settings.gradle
include ':react-native-vision-camera'
project(':react-native-vision-camera').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vision-camera/android')
maintenance-hansbot
changed the title
error: package com.mrousavy.camera.frameprocessor does not exist
🔧 error: package com.mrousavy.camera.frameprocessor does not exist
Jan 16, 2025
It looks like you're experiencing a build error related to a missing package. From ze logs you've provided, it seems like "react-native-worklets-core" might not be correctly linked, or perhaps it's not installed properly. I recommend checking if you've correctly set up and linked all required dependencies.
Also, make sure to build ze VisionCamera example app, as it can help identify if the issue is with your setup or something specific to your project.
Keep in mind that if you're looking for quicker support, consider supporting this project by becoming a sponsor here.
Please let us know what you find!
Note: If you think I made a mistake, please ping @mrousavy to take a look.
How were you trying to build the app?
"react-native-vision-camera": "^4.6.3",
"react-native-worklets-core": "^1.5.0",
"vision-camera-face-detector": "^0.1.8"
i have installed these packages through npm install
tried following solutions
clean project through npx react-native-clean-project
running these commands
brew uninstall --cask zulu11
brew install --cask adoptopenjdk/openjdk/adoptopenjdk11
cleaning gradlew and build watchman
restarting metro bundler
i tried adding these dependencies in build.gradle
implementation 'com.google.mlkit:face-detection:16.1.5'
// ML Kit Vision Dependencies
implementation 'com.google.mlkit:vision-common:17.3.0'
// Worklets Core (if not already installed)
implementation project(':react-native-worklets-core')
// CameraX (used by react-native-vision-camera)
implementation "androidx.camera:camera-core:1.1.0"
implementation "androidx.camera:camera-camera2:1.1.0"
implementation "androidx.camera:camera-lifecycle:1.1.0"
implementation "androidx.camera:camera-view:1.1.0"
and in settings.gradle
include ':react-native-vision-camera'
project(':react-native-vision-camera').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vision-camera/android')
my babel.config.js file
module.exports = function(api) {
if (api.env("production")) {
return {
"presets": ["module:@react-native/babel-preset"],
"plugins": [
// "transform-flow-strip-types",
"transform-remove-console",
"react-native-reanimated/plugin"
]
}
}
return {
"presets": ["module:@react-native/babel-preset"],
"plugins": [
// "transform-flow-strip-types",
"react-native-reanimated/plugin"
]
}
};
this is my android/build.gradle file
buildscript {
ext {
buildToolsVersion = "35.0.0"
minSdkVersion = 24
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.24"
}
apply plugin: "com.facebook.react.rootproject"
i tried all these solutions and configuration but still i'm getting this error
Full build logs
Project dependencies
VisionCamera Version
4.6.3
Target platforms
iOS, Android
Operating system
MacOS
Can you build the VisionCamera Example app?
I didn't try (⚠️ your issue might get ignored & closed if you don't try this)
Additional information
The text was updated successfully, but these errors were encountered: