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
 
posted @ 2018-05-16 14:35  三页黎明  阅读(186)  评论(0编辑  收藏  举报