React Native version mismatch报错解决方法

react-native报错:

React Native version mismatch.
JavaScript version: 0.51.0
Native version: 0.55.3

如图所示:

React Native version mismatch报错解决方法_第1张图片
image.png

解决办法:

找到/android/app/build.gradle文件,

dependencies {
...
//改这一句
//compile "com.facebook.react:react-native:+"  // From node_modules 
compile ("com.facebook.react:react-native:0.51.0") { force = true }// From node_modules 
}

结束

你可能感兴趣的:(React Native version mismatch报错解决方法)