react-native报错:
React Native version mismatch.
JavaScript version: 0.51.0
Native version: 0.55.3
如图所示:
解决办法:
找到/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
}