0

So I asked a question before here about setting up react native environment for windows. But I got error about android licensing so someone suggested me to run npx react-native doctor which resulted in one error which is

this error Here is the list of SDK installed enter image description here Please help me what does this error means

joedenly
  • 383
  • 2
  • 5
  • 14
  • 1
    It is likely that your environment variable path is not properly setup on android. https://stackoverflow.com/a/57059029/6299120 – Samin Apr 03 '20 at 06:19
  • I have added the system variable ANDROID_HOME at "C:\Users\AKSHAY\AppData\Local\Android\Sdk\platforms" that is at the location mentioned in the above above screenshot . Do I have to do something else – joedenly Apr 03 '20 at 06:28
  • Incase your sdk is installed on other location. Can you verify if it is on C:\Users\AKSHAY\AppData\Local\Android\Sdk\platforms? maybe some type error – Samin Apr 03 '20 at 06:31
  • I guess SDK is installed in the above location only. And what do you mean by type error – joedenly Apr 03 '20 at 06:34
  • shouldn't SDK be at the above screenshot that I added? – joedenly Apr 03 '20 at 06:38
  • Right. I usually work on mac so might not be updated on widows setup but. https://medium.com/@prasadjivane/react-native-environment-setup-on-windows-10-47a3b5e833b9 end of this installation guide can be useful – Samin Apr 03 '20 at 06:42

2 Answers2

1

This worked for me on windows 10:

Install android command line tools from android studio SDK manager (SDK tools tab). then add <YOUR_ANDROID_SDK_PATH>\cmdline-tools\latest\bin to PATH environment variables

0

ANDROID_HOME should be set to: C:\Users\AKSHAY\AppData\Local\Android\Sdk

Have you checked that your sdkmanager is properly working??

Try sdkmanager --list

rcty
  • 1
  • 1