react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

❓ Im getting the error: package com.mrousavy.camera does not exist

Open alphonse92 opened this issue 3 years ago • 10 comments

Question

Im getting the error: package com.mrousavy.camera does not exist

Screen Shot 2022-05-11 at 5 11 49 PM

What I tried

Cleaned modules and Following the examples, the guide and other resources

VisionCamera Version

2.13.3

Additional information

alphonse92 avatar May 11 '22 22:05 alphonse92

I have the same problem

zhaleTaheri avatar May 15 '22 10:05 zhaleTaheri

I don't using Expo but I've same problem

mauro-rogledi avatar May 16 '22 07:05 mauro-rogledi

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

alphonse92 avatar May 16 '22 16:05 alphonse92

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

alphonse92 avatar May 16 '22 16:05 alphonse92

And updates here? I have the same error now after cleaning.

biskis avatar Jun 21 '22 21:06 biskis

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

zhaleTaheri avatar Jun 21 '22 21:06 zhaleTaheri

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.

pistonsky avatar Jul 28 '22 22:07 pistonsky

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

jbrodriguez avatar Jul 29 '22 21:07 jbrodriguez

any fix for this i m getting the exact same issue?

jasbirrajrana avatar Aug 18 '22 09:08 jasbirrajrana

@mrousavy

jasbirrajrana avatar Aug 18 '22 10:08 jasbirrajrana

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

danielmark0116 avatar Mar 19 '23 18:03 danielmark0116

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.

mrousavy avatar Sep 30 '23 09:09 mrousavy