I am also faced this issue, the following help me to fixed the issue.
First, lets remove gradle alltogether (i had cache issues):
sudo rm -rf ~/.gradle
Then remove node modules on repo
rm -rf node_modules
install node modules
npm install
Downgrade vision camera library to version 4.3.2 as im using react-native version of 0.73.6
npm i [email protected]
if using expo, clean prebuild by
npx expo prebuild --platform=android --clean
you can also run
./gradlew clean
on ./android folder to make sure no caches present
then clear metro cache and start the app
sudo rm -rf $TMPDIR/metro-cache
npx expo run:android
Hope this helps!