[英]Error creating android debug build in react native
Release build in my project is working fine. 我的项目中的发布版本运行正常。 Debug build with local server ( ip address ) is also working fine. 使用本地服务器(ip address)进行调试构建也可以正常工作。 But when I create debug build with main bundle main.jsbundle. 但是当我使用主捆绑包main.jsbundle创建调试版本时。 It is showing following error. 它显示以下错误。
React native version mismatch. 反应本机版本不匹配。
Javascript version 0.50.4 Javascript版本0.50.4
Native version 0.55.4 本机版本0.55.4
What I have tried : 我尝试过的
I've run into these problems before and what solved it for me was honestly to delete all of my libraries and npm install
them again, the nodejs seems to be running a different version than react-native is and that's what is causing this issue. 我以前遇到过这些问题,老实说,为我解决的问题是删除我的所有库并再次npm install
它们,nodejs似乎运行的版本与react-native不同,这就是导致此问题的原因。 Make sure your package.json has the correct version as well. 确保您的package.json也具有正确的版本。
You will need to compile using JS 0.50.4 instead of 0.55.4 compile ("com.facebook.react:react-native:0.50.4") { force = true }
. 您将需要使用JS 0.50.4而不是0.55.4进行compile ("com.facebook.react:react-native:0.50.4") { force = true }
。 I hope this my help 希望这对我有帮助
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.