0
votes

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.

4
As far as I know the error is not with AVD instead with the license - joedenly

4 Answers

0
votes

setup an android emulator first with avd

0
votes

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.

0
votes

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/

0
votes

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