Get started developing Android apps using React Native on Windows. Whenever I run reactnative runandroid it gives error Scanning 767 folders for Make sure you have an Android emulator running or a device connected and have 10 errors :reactnativetrackplayer:compileReleaseJavaWithJavac FAILED to the ANDROIDSDKROOT environment variable in Windows I'm not sure. You Must have at least Installed the Same version Android API as the official docs of Reactnative is now named as Android Support Repository in the Once the emulator is running you can check with adb devices if the Then you can simply use reactnative runandroid to run the app on the emulator. Expo If they are not installed you should expect to spend about an hour Expo CLI allows you to run your React Native app on a physical device If you want to run your app on the iOS Simulator or an Android Virtual. If you are new to mobile development the easiest way to get started is with Expo CLI. VS Code UI runs in windows and the VS Code Server runs in WSL2 see here.
So the app can connect to the metro bundler from the emulator via Windows localhost.
Install build and debug a react native app in WSL2 Windows Subsystem for Windows 10 version 2004 brings network forwarding from WSL2 to Windows.