Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

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:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
expo run:android
expo run:android
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:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
CommandError: No development build (com.gotickets) for this project is installed. Please make and install a development build on the device first.
CommandError: No development build (com.gotickets) for this project is installed. Please make and install a development build on the device first.
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):

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
adb shell pm list packages
adb shell pm list packages
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:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
adb uninstall com.gotickets
adb uninstall com.gotickets
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.

1

Leave a Comment