What react-native :app:installDebug FAILED ?
Last Updated :
11 Jan, 2025
In this article we are going to fix this error i.e. if you are a react native developer then it's a big possibility that you might come across this error. Let's understand a solution that works wonders for this error.
When does this error occur?
This error occurs when we try to run our react-native project on an emulator. For example: with the help of the following command-
npx react-native run-android
This command starts making the processes work but then it fails when tries to launch the emulator from the android studio. Hence it fails in installing the application.
Follow the below steps to Fix this error:
Step 1: Launch Android studio and open your project.
Step 2: Go to files and check if Invalidate Caches/Restart... option is active. If it's not active then click on Invalidate Caches/Restart... option.
Step 3: Click on Invalidate and Restart.
- After this, Your project is going to restart again on android studio.
- Wait until all the Gradle processes are finished.
Step 4: Clear the cache of your emulator. To clear the cache click on AVD Manager.
Step 5: Click on the down arrow button and click WIPE Data.
That's all on the android studio side. For most of the users, the problem may not occur after these steps but if the problem is still not resolved then follow the below steps.
- Sometimes the metro bundler causes this problem while we try to run the application on the emulator.
- To resolve that we can start the metro bundler separately.
- As you would already know that npx react-native run-android does the entire task of running your application. But in this case, we are going to run the metro-bundler separately.
Step 6: Write this command in your project directory:
npx react-native start --port 8084 --reset-cache
What does this command do? Well, it is going to reset the cache of the metro bundler and launches the metro bundler at the same time.
Now, We will be running the emulator separately. Open a new cmd(command Prompt) window and write the following command in your project directory.
npx react-native run-android
Note: Close your all previous emulators if they are currently opened.
Now you can see the build is successful this time.
Similar Reads
What are the steps to create first React Native App ? React Native is an open-source UI software framework created by Meta Platforms, Inc. It is used to develop applications for Android, Android TV, iOS, etc. Weâre always looking for shorter development cycles, quicker time to deployment, and better app performance. And there are so many hybrid mobile
4 min read
React Native Debugging Debugging is very important for building applications and removing errors. A good knowledge of debugging techniques allows for the faster and efficient development of software.Here we are going to discuss a few debugging techniques in React Native. We will be using expo-cli to develop, run, and debu
4 min read
Create Signed APK/AAB files for React Native App In this article, you will learn how to create an APK or Android App Bundle (AAB) file for a React Native app. Your application should be digitally signed with an upload key in order to make your Android application published on the Google Play store.Generating Private Signing Keys in Terminal/cmdYou
3 min read
How to perform logging in React Native ? In this article, we will learn about logging in React Native.LoggingIt is a quick and easy way to debug your application in development phase. It helps to get an insight into the functioning of the application. To perform logging, we can simply use the console.log() statements to log the required in
4 min read
Top 10 Tools You Must Use for Debugging React Native Applications What can you do when you want to debug while using React Native apps? Can React Native do justice to your hard work? Donât worry! You can solve problems with debugging tools for react native. Although React native faces competition: React Native vs. flutter, it has managed to stay afloat with its po
6 min read