install android studio in my d:/Android studio folder then to run react native app how to set path in windows pc To Run a React Native App on Windows with Android Studio installed in D:\Android Studio, you need to properly set the environment variables for the Android SDK and Java (used by Android Studio). Here’s a step-by-step guide: ✅ 1. Locate the SDK Path Android Studio installs the Android SDK in a default location unless you changed it. Typical paths: If you installed everything in D:\Android Studio, the SDK may be at: D:\Android Studio\Sdk To confirm: Open Android Studio → Go to File > Settings > Appearance & Behavior > System Settings > Android SDK. Note the SDK Location. ✅ 2. Set Environment Variables in Windows A. Set ANDROID_HOME Open System Properties: Press Win + S → type "Environment Variables" → open it. Under System variables, click New: Variable name: ANDROID_HOME Variable value: D:\Android Studio\Sdk B. Add SDK Tools to Path Still in System Variables, find and edit the Path variable: Click New and add these (adjust to your SDK location): D:\Android Studio\Sdk\platform-tools D:\Android Studio\Sdk\emulator D:\Android Studio\Sdk\tools D:\Android Studio\Sdk\tools\bin ✅ 3. Set Java Path React Native requires Java (JDK). Android Studio bundles it (usually in jbr or jre folder). Find it here: D:\Android Studio\jbr or D:\Android Studio\jre Add a new environment variable: Variable name: JAVA_HOME Variable value: D:\Android Studio\jbr (or the actual Java folder) Also, add %JAVA_HOME%\bin to your Path. ✅ 4. Verify Setup Open a new Command Prompt (important – it needs to reload variables), then run: adb --version echo %ANDROID_HOME% java -version They should return valid results. ✅ 5. Start React Native App Now you're ready. In your React Native project folder, run: npx react-native run-android Make sure: An Android emulator is running (npx react-native doctor can help). Or a real device is connected with USB debugging enabled.