Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React-Native run-android command issue

When starting android project with React-Native it is giving this error:

React-Native Command run-android unrecognized.Did you mean to run this inside a react-native project?

like image 308
Deepak Patidar Avatar asked Nov 20 '15 08:11

Deepak Patidar


People also ask

Can React Native run on Android?

Overview. React Native is an open-source mobile application framework created by Facebook. It is used to develop applications for Android, iOS, Web and UWP (Windows) providing native UI controls and full access to the native platform. Working with React Native requires an understanding of JavaScript fundamentals.

Can we run React Native without Android Studio?

You will need Node, the React Native command line interface, a JDK, and Android Studio. While you can use any editor of your choice to develop your app, you will need to install Android Studio in order to set up the necessary tooling to build your React Native app for Android.


2 Answers

You need to make sure that you are inside the project like cd AwesomeProject and do npm i and after that execute npx react-native run-android

like image 173
Yazan Najjar Avatar answered Sep 28 '22 22:09

Yazan Najjar


A lot of developers fail to mention the crucial point,that certain commands require you to be a particular directory. In this case, to "react-native run-android", you have to be in your project directory!

like image 40
Ebe Avatar answered Sep 28 '22 22:09

Ebe