Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React-native camera not working #138

Open
Dubey-Shivani opened this issue Oct 16, 2022 · 7 comments
Open

React-native camera not working #138

Dubey-Shivani opened this issue Oct 16, 2022 · 7 comments

Comments

@Dubey-Shivani
Copy link

Since React-native camera is deprecated (https://github.com/react-native-camera/react-native-camera). So now this library isn't working.

How can I make it run?

@RobertSasak
Copy link
Owner

This library does not directly depend on react-native-camera. So this deprecation is not affecting it.

@Dubey-Shivani
Copy link
Author

I am not able to run this project. If I try running your code I end up with multiple issues
In Android:

  1. Firstly, I ran into cvc-complex-type.2.4.a: Invalid content was found starting with element 'base-extension'. One of '{codename, tag}' is expected. issues.
  2. After resolving them I had compile issues

Screenshot 2023-01-17 at 3 01 10 PM

@RobertSasak
Copy link
Owner

RobertSasak commented Jan 17, 2023

Are you running an example project in example folder?

@Dubey-Shivani
Copy link
Author

yes

@RobertSasak
Copy link
Owner

Sounds like you need to replase compile with implementation.
https://stackoverflow.com/questions/69044250/build-gradle-error-could-not-get-unknown-property-compile

@Dubey-Shivani
Copy link
Author

Even after changing this, there were various issues. Currently, I am getting gradle issue. Even after I have added MavenCentral
Screenshot 2023-01-19 at 3 47 40 PM

Could not find com.android.tools.build:gradle:7.4.0.
Searched in the following locations:

@RobertSasak
Copy link
Owner

It says in your error message to add google Maven repository. Have you tried that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants