react-native-vision-camera
react-native-vision-camera copied to clipboard
❓ Im getting the error: package com.mrousavy.camera does not exist
Question
Im getting the error: package com.mrousavy.camera does not exist
What I tried
Cleaned modules and Following the examples, the guide and other resources
VisionCamera Version
2.13.3
Additional information
- [ ] I am using Expo
- [X] I have read the Troubleshooting Guide
- [X] I agree to follow this project's Code of Conduct
- [X] I searched for similar questions in the issues page as well as in the discussions page and found none.
I have the same problem
I don't using Expo but I've same problem
I don't know how I solved this, but maybe it can be helpful for yall. After getting this error I opened the project with Android studio. Android Studio started to clean the project and then, I ran cd android && ./gradlew clean after that, I was able to run the project.
On the other hand, I removed all manual linkings I made
I'll keep this open because there isn't information about the process of building this library when we run the Project. Or maybe it happen randomly
And updates here? I have the same error now after cleaning.
My problem was solved for android
- rm -rf yarn.lock package-lock.json node_modules ios/Pods ios/Podfile.lock android/app/build
- yarn && cd ios && pod update && cd ..
- npx pod-install
- yarn cache clean
- yarn clean:android
- yarn android for ios
- rm -rf yarn.lock package-lock.json node_modules ios/Pods ios/Podfile.lock android/app/build
- yarn && cd ios && pod update && cd ..
- npx pod-install
- yarn cache clean
- yarn ios
For those who are on Mac.
The issue may appear when you have followed a wrong version of “Getting started” doc during your Mac setup for React Native development. You need to follow the correct one, depending on the version of react native that your project is using.
In my case, I needed to uninstall java, and install it again, but using AdoptOpenJDK, instead of Zulu:
brew uninstall --cask zulu11
brew install --cask adoptopenjdk/openjdk/adoptopenjdk11
I actually even tried to install java 17, so I had to uninstall both zulu11 and zulu17.
i was having this same problem, no amount of cleaning fixed, except applying this patch to the v2.40.0 of the package https://github.com/mrousavy/react-native-vision-camera/pull/1116/files
any fix for this i m getting the exact same issue?
@mrousavy
For those who are on Mac.
The issue may appear when you have followed a wrong version of “Getting started” doc during your Mac setup for React Native development. You need to follow the correct one, depending on the version of react native that your project is using.
In my case, I needed to uninstall java, and install it again, but using AdoptOpenJDK, instead of Zulu:
brew uninstall --cask zulu11 brew install --cask adoptopenjdk/openjdk/adoptopenjdk11I actually even tried to install java 17, so I had to uninstall both
zulu11andzulu17.
I can confirm that it solved it on my setup as well!
I had zulu's 11 version. I got rid of this one and installed the adoptopen one (used jenv to swithc between versions). Everything works now.
Closing as this is a stale issue - this might have been fixed with the full rewrite in VisionCamera V3 (🥳) - if not, please create a new issue.