关于前段时间爆发的react-native version mismatch问题
react-native version mismatch
代码没有改动出任就打不开跑不起来如下图所示:
解:
有人添加了这个https://bintray.com/weimob/maven/react-native/0.55.3,它会打破jcenter()在项目存储库中指定的所有React Native Android版本。为了避免这个问题,你应该android/app/build.gradle像这样在文件中强制React Native版本compile (“com.facebook.react:react-native:0.52.0”) { force = true }。更改0.52.0为您使用的版本。