mcnamee / react-native-starter-kit

:rocket: A React Native boilerplate app to get you up and running very, very quickly :rocket:
MIT License
3.35k stars 863 forks source link

react-native run-android #205

Closed mhdbnz closed 5 years ago

mhdbnz commented 5 years ago

hi i have problem when use react-native run-android:

JS server already running. Building and installing the app on the device (cd android && gradlew.bat installDebug)… Support for running Gradle using Java 7 has been deprecated and is scheduled to be removed in Gradle 5.0. Please see https://docs.gradle.org/4.4/userguide/java_plugin.html#sec:java_cross_compilation for more details.

FAILURE: Build failed with an exception.

BUILD FAILED in 1s Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html

E:\mehdi\react-native-project\test> what should i do?

ashokkumar88 commented 5 years ago

It seems mismatched react native version. Delete the app from the device/emulator and run again.