The Expo React Native project encountered an Android build failure

I have a project that was created using expo 49 and typescript 5.1.3, and now I need to prepare it for submission to Google Play.

To achieve this, I followed a series of steps in the VS Code terminal:

1) Ran npm install -g eas-cli

2) Executed eas login

3) Entered eas build:configure

√ Selected Android as the platform to configure for EAS Build

√ Generated eas.json. For more details, visit here

🎉 The project is now ready for building.

To initiate the build, run eas build whenever you're prepared.

After the build is finished, use eas submit to upload the app to app stores.

Explore additional features of EAS Build at this link

4) Lastly, executed eas build --platform android

Loaded "env" configuration for the "production" profile with no environment variables specified. Learn more at this link

✔ Used remote Android credentials from Expo server

✔ Employed Keystore from configuration: Build Credentials wdhdOKG1L- (default)

Compressed files and uploaded them to EAS Build. Gain insights at this archive

✔ Successfully uploaded to EAS in 1 second

Awaiting completion of the build process. You can exit by pressing Ctrl+C.

✖ Unfortunately, the build failed

The Android build specifically encountered an error related to Gradle, which leads us to the following errors on the Expo website:

While navigating the expo.dev site, the issue persisted with the error below,

Error message received when running 'gradlew :app:bundleRelease' in /home/expo/workingdir/build/android

For further information on this release, please refer to https://docs.gradle.org/8.0.1/release-notes.html
In order to respect JVM settings used for this build, a single-use Daemon process will be forked.

To troubleshoot these issues, follow the guidelines provided in the links above.

For the full codebase, check out the repository here

Answer №1

Make sure to verify if your project includes an android folder. If it doesn't exist, take the time to investigate and create one. Alternatively, you can recreate the project using the expo init command to generate the necessary android folder.

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

Different categories of "areas" found in TypeScript within Visual Studio 2013

In C#, we often use "regions," but unfortunately that feature is missing in TypeScript. Is there a way to group code sections in TypeScript? I came across this article on Stack Overflow discussing the absence of regions in TypeScript. I'm curious if ...

What is the best way to utilize v-model with an array of strings in a Vuex store when using v-for

Encountered an issue while trying to set a value in an Array within the Vuex Store: VueCompilerError: v-model cannot be used on v-for or v-slot scope variables because they are not writable. Seeking alternatives to achieve this without creating a local co ...

What steps can be taken to eliminate redundancy in this code and improve its efficiency?

Here I have two methods, create and update, that send data to an API. I am looking to enhance the createUser and updateUser methods as they are very similar. Additionally, if you have any suggestions on a better way to directly set the id property as null ...

Enhancing TypeScript Native Interface Properties in TypeScript 2.4

After discovering an error in the native Typescript interface for HTMLTextAreaElement, I realized the need to make a correction. The current interface looks like this: interface HTMLTextAreaElement { setSelectionRange(start: number, end: number): void; ...

Oops! Looks like something went wrong. The command to install the debug app failed because the emulator could not be launched. This could be due to the fact that no emulators were found

I'm in need of assistance to resolve these issues Encountered an error while trying to install the app. Please ensure that your Android development environment is properly configured: https://reactnative.dev/docs/environment-setup. Error: Command fai ...

Creating a React button animation with CSS vibes

When I click a button, I want a subtle sparkle to appear and disappear quickly, within half a second. I've thought about using a gif, but it requires a lot of manual artistic work to achieve the desired effect. Is there a way to utilize the Animatio ...

Issue with accessing another component's HTML anchor (ngbNav)

I am facing an issue with navigation in my Angular application. I have two components and I want to navigate from the first component to the second, specifically to a particular pills tab, but it is not working as expected. Initially, this is what gets di ...

The element 'mat-form-field' is unrecognized in Angular 9 and Material 9.2.0 version

Greetings! I am currently utilizing Angular 9 and here is the code snippet I am working with: The HTML component named "post-create.component.html": <mat-mat-form-field> <textarea rows="6" [(ngModel)]="enteredValue"></textarea> </ma ...

Issue: The TypeError reported is due to the absence of any definition for "_co.category.category_type"

I have two models: CategoryTypes and Categories. Each category type contains multiple categories. These are my two models. Categories Model import { Categories } from '../../categories/Mode/Categories' export class CategoryType { _id: strin ...

Signatures overburdened, types united, and the call error of 'No overload matches'

Consider a TypeScript function that takes either a string or a Promise<string> as input and returns an answer of the same type. Here's an example: function trim(textOrPromise) { if (textOrPromise.then) { return textOrPromise.then(val ...

Is it possible to pass parameters from a base class's constructor to a child class?

I'm facing an issue with my base (generic) classes where the properties are initialized in the constructor. Whenever I try to extend these classes to create more specific ones, I find myself repeating the same parameters from the base class's con ...

Issue TS2339: The object does not have a property named 'includes'

There seems to be an issue that I am encountering: error TS2339: Property 'includes' does not exist on type '{}'. This error occurs when attempting to verify if a username is available or not. Interestingly, the functionality works ...

The most effective method of exporting types from a declaration file to an external project

I have successfully implemented a method to export types defined in a declaration file for use within my project and for exporting to external projects. The strategy that worked for me was wrapping the type in a namespace. Project X on Github @types/inde ...

Retrieve data from Ionic storage

Need help with Ionic storage value retrieval. Why is GET2 executing before storage.get? My brain needs a tune-up, please assist. public storageGet(key: string){ var uid = 0; this.storage.get(key).then((val) => { console.log('GET1: ' + key + ...

Struggling with TypeScript compilation in a Vue.js project? Encounter error code TS2352

Here is my code snippet from window.ts import Vue from 'vue' interface BrowserWindow extends Window { app: Vue } const browserWindow = window as BrowserWindow export default browserWindow Encountering a compilation error Error message: TS2 ...

Exciting Dynamic Text Animation in React using styled components

I came across this cool jumping text effect on https://web.dev/patterns/animation/animated-words/ and wanted to incorporate it into my app. However, when I tried implementing the component in React, I encountered some issues. I created a styled component a ...

Is there a way to verify if the size of an array retrieved from an API request has been altered?

Is there a way to compare the length of the array returned after an API refresh call with the previous value? For instance: let currentLength; let previousLength; ngOnInit() { this.dataService.getData().subscribe(data => { this.data = data; t ...

Parent/Child Relationships in Typescript

Unraveling the Parent/Child Directive Mystery in Angular2/Typescript As I delve into the world of Angular2/Typescript/javascript, there is still much for me to learn. My current project involves a card game where each of the 2 players holds a hand of 5 ca ...

Embed the getServerSideProps function within a helper method

I have multiple pages that require protection using firebase admin methods: const getServerSideProps = async (ctx: GetServerSidePropsContext) => { try { const cookies = nookies.get(ctx); const token = await firebaseAdmin.auth().verifyIdToken(c ...

What will be the output of this typescript function?

Whenever I hover over the keyword 'function', this cryptic description pops up: "(local function)(this: any, next: (err?: mongoose.CallbackError | undefined) => void): Promise<void>" I'm confused about whether it return ...