The problems you might face while setting up React Native and Android Studio

Problem1:Android Debug Bridge not found:

The problem most people face after installing android studio is that Android Debug Bridge(adb) can't be located. It a major reason behind the failing of app build. To solve this issue follow the following steps:

  • Step1: locate your adb.exe file. (Generally you will find it like C:\user\username\appdata\local\android\sdk\platform-tools)

  • Step2: copy the path and open your environment variable then paste it in Path of your system variable as well as user variable.

  • Step3:Now,check your adb using command : adb --version in your terminal.

Problem2:sdk location not found

Other problem that are faced by most beginner while setting up their system for first time is sdk location not found. If you are also facing this same issue here are the steps you can follow to solve the issue:

  • Step1:Open your Android Studio , then click on more action , a pop up menu will appear click on sdk manager.

  • Step2:On top center of the screen you will see Android sdk location , copy it .

  • Step3:Open your environment variable setting, create a new variable name ANDROID_HOME in both system variable and user variable and paste the path .

  • Now, run your application again it will solve the issue.

Problem3:✖ JDK - Required to compile Java code - Version found: 21.0.1 - Version supported: >= 17 <= 20

For this issue you just have to delete your current jdk and install a jdk version that is supported by the app. For eg in this the found version of jdk is 21.0.1 and the supported version is between 17 to 20. Just go to oracle.org to download the required jdk version .Follow the following step to set jdk path in environment variable:

  • Step1:Now, open the location where jdk is installed and copy the location .

  • Step2:Open environment variable and create a new system variable JAVA_HOME and paste the path.

  • Now save it and run your application again.

While setting up react-native and android studio for the first one can find it difficult, but the key to a successful setup is to read the errors properly and have patience.