Fix – React native version mismatch

If you get React native version mismatch error, here is how to fix this issue. Basically, this error occurs because your project has a different…

The post Fix – React native version mismatch appeared first on CodeSource.io.


This content originally appeared on CodeSource.io and was authored by Pandu Rijal Pasa

If you get React native version mismatch error, here is how to fix this issue.

Basically, this error occurs because your project has a different version from the one you already specified on package.json. This also sometimes happened when you are running multiple projects and the server accidentally installed a different react version.

To fix the issue, you can simply try to close all your terminals and start to run the project again.

If you are still experiencing the error, you can force the React Native version that already specified on android/app/build.gradle by opening this file and then change the file just like this:

compile ("com.facebook.react:react-native:0.52.0") { force = true }

Note: change the 0.52.0 with the version that you are currently using.

The post Fix – React native version mismatch appeared first on CodeSource.io.


This content originally appeared on CodeSource.io and was authored by Pandu Rijal Pasa


Print Share Comment Cite Upload Translate Updates
APA

Pandu Rijal Pasa | Sciencx (2021-02-21T12:12:03+00:00) Fix – React native version mismatch. Retrieved from https://www.scien.cx/2021/02/21/fix-react-native-version-mismatch/

MLA
" » Fix – React native version mismatch." Pandu Rijal Pasa | Sciencx - Sunday February 21, 2021, https://www.scien.cx/2021/02/21/fix-react-native-version-mismatch/
HARVARD
Pandu Rijal Pasa | Sciencx Sunday February 21, 2021 » Fix – React native version mismatch., viewed ,<https://www.scien.cx/2021/02/21/fix-react-native-version-mismatch/>
VANCOUVER
Pandu Rijal Pasa | Sciencx - » Fix – React native version mismatch. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/02/21/fix-react-native-version-mismatch/
CHICAGO
" » Fix – React native version mismatch." Pandu Rijal Pasa | Sciencx - Accessed . https://www.scien.cx/2021/02/21/fix-react-native-version-mismatch/
IEEE
" » Fix – React native version mismatch." Pandu Rijal Pasa | Sciencx [Online]. Available: https://www.scien.cx/2021/02/21/fix-react-native-version-mismatch/. [Accessed: ]
rf:citation
» Fix – React native version mismatch | Pandu Rijal Pasa | Sciencx | https://www.scien.cx/2021/02/21/fix-react-native-version-mismatch/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.