Recently, I am studying React Native, which has a code scanning function, which can be implemented through the React-native camera.

The basic installation steps of the React-Native camera can be found in this article

React Native Implements the scan function based on the React – Native camera

I would like to talk about the problems encountered. I encountered this error during the build process:

Android dependency ‘Androidx. core:core’ has different version for the compile (1.0.0) and Runtime (1.0.1) classpath. You should manually set the same version via DependencyResolution

The version number or error dependencies may vary, but I think the solution should be the same. Many solutions found on the Internet are unreliable and troublesome, but here is a solution.

First, make sure the project builds successfully when you install this module (which means the project was normal before). I think the reason for this error is that the new module version is too high or too low, and the solution is simply to keep lowering (or increasing) the version until the build succeeds.

Android Dependency ‘Androidx. core:core’ has different version… These kinds of mistakes can be solved this way.