Experiencing a problem while attempting to start an Android React Native project

Whenever I try to execute the react-native run-android command, the following message appears:

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 998 file(s) to forward-jetify. Using 12 workers... info JS server already running. info Installing the app...

FAILURE: Build failed with an exception.

  • Where: Build file 'C:\tmpProjets\beetv-app\node_modules\react-native-reanimated\android\build.gradle' line: 58

  • What went wrong: A problem occurred configuring project ':react-native-reanimated'.

    Cp65001

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at

BUILD FAILED in 8s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • Where: Build file 'C:\tmpProjets\beetv-app\node_modules\react-native-reanimated\android\build.gradle' line: 58

  • What went wrong: A problem occurred configuring project ':react-native-reanimated'.

    Cp65001

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at

BUILD FAILED in 8s

at checkExecSyncError (child_process.js:611:11)
at execFileSync (child_process.js:629:15)
at runOnAllDevices (C:\tmpProjets\beetv-app\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at buildAndRun (C:\tmpProjets\beetv-app\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:179:41)
at C:\tmpProjets\beetv-app\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:133:12
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Command.handleAction (C:\tmpProjets\beetv-app\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:182:9)

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] android: react-native run-android npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] android script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\Blerr\AppData\Roaming\npm-cache_logs\2020-03-19T10_46_33_609Z-debug.log

Answer №1

Execute the following command in the project directory npx jetify and verify

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Having difficulty running unit tests on a styled component that is overriding material-ui

In my project, I have a customized styled component for a navigation list item which is wrapped around a Material-UI list item. To override the default styles without using '!important' flags, I am utilizing the '&&' operator in ...

Display different screens depending on whether the user is authenticated in React Native

My goal is to dynamically render a React Native screen based on different conditions: 1) when the app is loading while checking authentication status, 2) if the user is already authenticated and show the home screen, or 3) if the user is not authenticated ...

The image file that was uploaded from a React Native iOS application to Azure Blob Storage appears to be corrupted or incomplete as it is not

Struggling to develop a feature in a React Native mobile app where users can upload and crop their profile picture, then store it in Azure blob storage. I encountered difficulty with implementing react-native-fs as many resources recommended it, but I kep ...

Experiencing issues with sending log messages symbolicatedStack on react native and expo

After updating to the latest versions of react (0.62.2) and expo (37.0.12), most things were working fine. However, I kept encountering an error screen that would pop up each time I reloaded the app or shortly after an error occurred. console.error: There ...

Unable to download and install npm packages

Just today, I attempted to set up redux and encountered the following error: Interestingly, this issue isn't isolated to redux. C:\FE-Proj-Templates\webpack>npm i -D redux npm WARN package.json <a href="/cdn-cgi/l/email-protection" c ...

Looking for a more efficient approach to writing React styles for color?

Desire I am interested in customizing colors within Material UI components. Moreover, I aim to develop a React Component that allows for dynamic color switching through Props. Challenge The current approach using withStyles results in redundant and lengt ...

Can you please provide the appropriate PropTypes for a dictionary in a ReactJS project?

Looking for something along the lines of y = {"key0": [value0, value1], "key1":[value2]} What is the proper way to define the proptypes for y? ...

Error encountered due to an unhandled promise rejection of type

I am currently using async/await to execute a query to the database and receive the result. However, I encountered an error in the browser console that says: Unhandled promise rejection TypeError: "games is undefined" In my code, there are two function ...

Accessing a file located in a specific directory using the node fs module

Currently, I am attempting to access a file from my local system using the 'fs' module in node.js. However, I have encountered an issue where the 'fs' module does not seem to function properly when an absolute path is provided. Here is ...

Validating forms in ReactJS

I have developed a basic form validation feature for React. The inspiration for this project came from the following source: When I try to submit the form, input errors arise within the isValid function. I am seeking assistance in resolving this issue. A ...

A custom-designed Material UI TextField featuring a specific date and time picker capable of displaying seconds

Currently, I am facing an issue while using react-admin and trying to modify the date and time, specifically including seconds with the help of DateTimeInput. Unfortunately, my attempts have been unsuccessful so far. Here is what I have tried: Approach 1: ...

Optimal strategy for modifying the MUI Drawer's content

I'm brand new to React and I'm trying to figure out the most effective way to create a simple transition of body content using React + MUI + Drawer. The code snippet below is completely incorrect and just for demonstration purposes: return ( ...

Retrieve the URL for the React component

I'm facing some challenges with React fundamentals :/ I have a piece of code that creates a table using JSON data: import React from 'react' import { DataTable } from 'react-data-components'; function createTable(data) { ...

Render function in Next.js did not yield anything

Recently, I came across the next.js technology and encountered an error. Can anyone help me solve this issue? What could be causing it?View image here import React from 'react' import Button from "../components/button" function HomePa ...

What is the best way to execute the command "npm run watch" on a server for a Laravel project?

Seeking assistance with an issue I've encountered – I can't find the solution on my own. I am currently attempting to immediately update changes made in the code using "np m run watch", but I'm unsure how to do so on the server. All the f ...

"Exploring the process of overloading the CSS for a Material Switch

I am attempting to customize the MuiSwitch-track class of a switch, but so far my efforts have been unsuccessful. What I really want to do is customize the track for a specific switch only. I attempted using "@global": { ".MuiSwitch-track": { b ...

How can you initialize the app in Next.js regardless of the routes being entered?

Within my application, I am facing the challenge of loading global data into the Redux store at the start of the app. Initially, I utilized a useEffect with a run-once functionality on the homepage with the route /. As I introduce new routes, such as /use ...

What method is used to initialize the variables in this JavaScript snippet, and what other inquiries are posed?

As a backend developer, I'm looking to understand this JavaScript snippet. While I grasp some parts and have added comments where I am clear, there are still sections that leave me with bold questions. function transformData (output) { // QUESTIO ...

Hide the drawer when a user clicks on a currently selected tab

Just starting to explore Material-UI and React here, so please bear with me if I'm making any rookie mistakes. :) I've set up a Drawer component containing a Tabs element with multiple Tab components inside. It's nothing too fancy yet - mos ...

What is the best way to define a custom route in react-router-dom?

My goal is to have the URL display "/login" in the address bar when I am on the login page. // App.js <Routes> {isLoggedIn ? ( <Route path="/" element={<Root onLogout={handleLogout} />}> <Route index e ...