Encountering an issue during the Expo React Native project compilation: Gradle build unsuccessful due to an unknown error. Refer to the logs in the "Run gradlew" phase for further details

I am facing an issue while trying to build my application using expo for android. It works perfectly on emulators, but when I run the command line:

eas build -p android --profile preview

With the configuration in eas.json file as follows:

{
  "build": {
    "preview": {
      "android": {
        "buildType": "apk"
      }
    }
  }
}

I encounter an error in the expo console:

> Task :expo-modules-core:configureCMakeRelWithDebInfo[arm64-v8a]
"Install CMake 3.22.1 v.3.22.1" finished.
...
Error: Gradle build failed with unknown error. See logs for more information.
> Get more help at https://help.gradle.org.
....
Didn't find any issues with the project!

When I check with the command line:

npx expo-doctor

All dependencies seem correct.

✔ Check Expo config for common issues
...
✔ Check that packages match versions required by installed Expo SDK

My app.json is configured as:
{
  "expo": {
    "name": "Breathe",
    ...
    "extra": {
      "eas": {
        "projectId": "..."
      }
    }
  }
}

If anyone can assist me in resolving this Android build issue, it would be greatly appreciated. Thank you!

Answer №1

After some experimentation, I successfully obtained my completed project by initiating a new project and transferring the content from my previous project to the fresh one.

I am intrigued by this process and would appreciate an explanation from someone knowledgeable in the field.

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

Displaying multiple strings on a single line using AngularJS

I'm attempting to show a multi-line string on a webpage using AngularJS. Here's what I have: <textarea ng-model="StringValue"></textarea> {{StringValue}} When you enter text into the textarea: "This is a string" it displa ...

Accessing public static files in Express by using the routes folder

I'm currently facing an issue with accessing a static file named 'home.html' located in the public directory of my app's architecture: public home.html routes index.js views myapp.js In myapp.js: var express = require('ex ...

Unexpected error due to an await operation

Shown below is the rendering of a Group component in a react native app (version 0.59): render() { return ( <FlatList style={styles.selectionList} data={this.state.activeGroups} renderItem={({item, secti ...

Incorporate JavaScript strings into HTML dynamically

I am facing some challenges with single quotes while trying to append HTML with a JavaScript string. So far, I have managed to successfully append the element: $("<a class='action-button' id='pl65197buy' value='buy now'&g ...

Uncaught TypeError occurs in AngularJS and Mocha testing when the function (window.beforeEach || window.setup) is not defined

I've been experimenting with testing angular js using mocha in my meteor application. After installing ngMock and injecting it into my module, I encountered an issue right when starting my app. Regardless of whether I installed ngMock from atmosphere ...

unordered list tag not successfully transmitting data to the $_POST superglobal array

Can someone help me figure out how to send the selected option from a dropdown menu in a form to a PHP $_POST variable? I've tried following a solution from this post without success. The dropdown menu is part of a signup form I found on this bootstr ...

Using TypeScript to consolidate numerous interfaces into a single interface

I am seeking to streamline multiple interfaces into one cohesive interface called Member: interface Person { name?: { firstName?: string; lastName?: string; }; age: number; birthdate?: Date; } interface User { username: string; emai ...

What causes the function to return null when using router.get('/:x',..), whereas router.get('/foo/:x',...) works perfectly fine?

After weeks of struggling to identify the root cause of my issue, I finally pinpointed it. Now, I'm curious to understand the reason behind this behavior. I constructed an api for my mongodb server following the techniques I learned in school, utiliz ...

Utilizing the power of jQuery alongside Angular 4

I am trying to display a bootstrap modal but keep encountering an error message: SectionDetailComponent.html:54 ERROR TypeError: $(...).modal is not a function This is how my .angular-cli file looks like: "scripts": [ "../node_modules/jquery/dist/jq ...

Adjust the slide count accordingly when navigating to a particular item within the Bootstrap 3 Carousel

I made adjustments to the standard Bootstrap 3 Carousel so that it can navigate to a specific slide when the URL matches #. Although this feature is working, I am facing an issue with my pager-text not updating correctly when jumping to a specific slide. T ...

Tips for applying a single class to the element that was specifically clicked in React

I am currently working on a project where I need to loop over an object and display li tags while attaching a click handler. Below this, there is a game component that shows additional information. Does anyone have any advice on how I can improve my logic ...

Accessing the property of the scrollbox in Reactjs: How to get the horizontal offset

I am currently working on a scroll view designed as a series of views wrapped horizontally within a container. <div id="scroller" ref="scroller" onClick= {this.onClick.bind(this)} onMouseMove={this._onMouseMove.bind(this)}> {t ...

Model is updated by checkbox only on the second click

Take a look at this Plunkr example here: http://plnkr.co/edit/hwVL3xtnD9hGJL?p=preview After clicking the checkbox for the first time, the model fails to update. Can you explain why? var app = angular.module('main', ['ngMaterial']) ...

Having difficulty retrieving the value of a variable obtained from the Google Distance Matrix function

Utilizing the Google distance matrix API to calculate the distance between two locations, I encountered an issue with global variable access. Despite changing the variable within a function, I found that I was unable to retrieve the updated value of the va ...

Can a type alias be created for more than one parameter of a class or function with multiple type parameters?

When using Vue, there are situations where a generic function may require 3, 4, or even 5 type parameters. Is it possible to create a type alias for these parameters in order to avoid typing them out repeatedly? Something like this perhaps: // Example of ...

Are you looking for a streamlined method to create styled components with MaterialUI?

I am exploring ways to easily define convenient components in my application utilizing Material-UI. After referring to an example from the Material-UI documentation for Appbar, I attempted to incorporate some React components for better readability. My c ...

Where does the browser retrieve the source files for "sourcemapped" JavaScript files from?

As I begin working on an existing project built with angular JS, upon opening chrome dev tools and navigating to the "source" view, a message appears: Source map detected... This prompts me to see a link to: https://i.stack.imgur.com/RZKcq.png The fi ...

Listener function triggered following its deletion on IE11

While developing a component that listens for clicks on the entire document, I encountered an issue with IE11. To demonstrate this problem, I created a few simple components. class App extends React.Component { constructor(props) { super(props); ...

If the display style value matches in JavaScript/jQuery

Is there a way to check if the display is equal to none or to table-row? Here's the code I'm using: Javascript/JQuery: function toggleDisplay(element){ var clickedElement = $(element).closest("li"); var pageList = $(".pagination li"); ...

How can we use tsyringe (a dependency injection library) to resolve classes with dependencies?

I seem to be struggling with understanding how TSyringe handles classes with dependencies. To illustrate my issue, I have created a simple example. In my index.tsx file, following the documentation, I import reflect-metadata. When injecting a singleton cl ...