react-native React Native version mismatch

android/app/build.gradle     file:

dependencies {
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:+"  // From node_modules
}

changed to this:
dependencies {
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile ("com.facebook.react:react-native:0.52.2") { force = true } // From node_modules
}

Good,it is working!
Answer is from:
https://github.com/facebook/react-native/issues/19259
 
原文地址:https://www.cnblogs.com/yang-shun/p/9045899.html