- Install React-Native by running
yarn global add react-native-cli
. - Unzip Android SDK Manager and ADB put them under
C://
or somewhere that you can access. - Modify path:
- Open a file explorer, right click
This PC
and selectProperties
. - Then select
Advance System Settings
, thenEnviroment Variables
. - Choose path, and add the
bin
folder from the SDK Manager, and the root directory of ADB tools. - To verify what you did works, open a command line promt (I used PowerShell), and run
adb
andsdkmanager
. So long as they output something your good, if not redo the previous steps.
- Open a file explorer, right click
- Now run
sdkmanager --licence
, and accept all the licences. - Run
react-native init <project name>
. - Connect your android device and verify using
adb devices
. - Run
react-native run-android
and wait. If it works, you are now ready to develop react native applications using android.
Best of luck.
even after download SDK manager cli and set path also, it gives error that it does not exist on run sdkmanager in powershall
Error: Could not determine SDK root.
Error: Either specify it explicitly with --sdk_root= or move this package into its expected location: \cmdline-tools\latest\