How to run my Android React Native project?


This is the first time that I use this IDE (WebStorm) and React Native to build an App.

I was trying to run the project, followed the documentation on Internet but, no success.


  1. How can I run the project using an Android Emulator?
  2. How can I run the project using a real device?
  3. How can I run the project using Wi-Fi? (without the need to connect a real device through USB)

Please, step by step, I'm new into this world.


I read it before and I couldn't run the project.

I received the following errors using react-native run-android:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> SDK location not found. Define location with sdk.dir in the file or with an ANDROID_HOME environment variable.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at

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:

I followed this steps to try to fix the issue but, no luck:

What I need to do to fix this?


What did you do namely? What OS are you on?

Note that your problem has nothing to do with the IDE, you'd better post it to to get help from other users experiencing similar issues


I'm using Windows 10.
I followed steps found on Internet every time I get an error.

Now, I received this error on my real device......

I followed this steps to fix the issue but, no luck yet.


Any idea?.


no idea, sorry. as I wrote, you'd better ask this at stackoverflow


Please sign in to leave a comment.