Error launching your React Native application locally

Tiempo de lectura: 2 minutos

Reading Time: 2 minutes

Good morning, in today’s tutorial, I’m going to show you how I solved an error that occurred to me a couple of times and I couldn’t figure out how to fix.

When running the application on my mobile device locally or on any mobile device, it is done with the following command:

expo run:android

If everything is correct with all the other configurations (Developer options enabled, USB debugging mode enabled, and USB installation allowed), it should run without any problem.

However, I encountered the following error even though everything was correctly enabled:

Basically, it says that the project is already installed, so we uninstall it from the phone, but we encounter the following:

CommandError: No development build (com.gotickets) for this project is installed. Please make and install a development build on the device first.

It tells us that our project is still installed, but the reality is that it’s not, but there seems to be something left somewhere.

SOLUTION:

We navigate to the following folder C:\Users\laura\AppData\Local\Android\Sdk\platform-tools. Once here, we open the command prompt and run the following command, which will give us a list of all the packages installed on our mobile device (you may need to run it with administrator privileges):

adb shell pm list packages

Here we look for the package we want to uninstall and execute the following command to remove it. If everything goes well, it will return a success:

adb uninstall com.gotickets

This way, we try to install the application again and you will see that the problem has disappeared.

I hope you like it and find it as useful as I did.

Leave a Comment