Posted at

React Native version mismatch

More than 1 year has passed since last update.


error: React Native version mismatch

参照:React Native version mismatch (on app that was working a couple of hours ago)


エラー内容

エミュレータは起動するが、React Native version mismatchのエラーがでる


対処

app/build.gradledependenciesに下記を追加する

使用しているreact-native version: 0.54.4の場合

compile ("com.facebook.react:react-native:0.54.4") { force = true }


app/build.gradle

dependencies {

...
compile ("com.facebook.react:react-native:0.54.4") { force = true }
...
}