0

Hi I have followed the official documentation for setting up the React native project on windows. I have added the ANDROID_HOME variable as system variable at location

"C:\Users\AKSHAY\AppData\Local\Android\Sdk" enter image description here

In the second step I was supposed to add Environment variable at

"C:\Android\tools\bin\platform-tools"

but there is no tools folder in Android instead I found platform-tools under SDK below is the location

"C:\Users\AKSHAY\AppData\Local\Android\Sdk\platform-tools"

Now when I am running

npx react-native run android

I am getting the below attached error

enter image description here

Here is the SDK folder enter image description here Please help.

joedenly
  • 383
  • 2
  • 5
  • 14

4 Answers4

0

setup an android emulator first with avd

Renz Carlo
  • 157
  • 1
  • 2
  • 13
0

if your RN >=.62

You can run npx react-native doctor inside your project folder

else

run npx @react-native-community/cli doctor inside your project folder

This command checks your environment and displays a report of the status of react native installation. Check the output carefully for other software you might need to install.

abdelrhman
  • 133
  • 9
0

You can install android studio then add ANDROID_HOME to your ENV Variable and point to your SDK.

Follow this link: https://web.archive.org/web/20180210044548/http://spring.io/guides/gs/android/

user5854648
  • 1,029
  • 2
  • 11
  • 36
0

The path you are looking for is located at : C:\Users\"yourUser"\AppData\Local\Android\Sdk\platform-tools