expo / expo/eas-cli

Android builds failing on eas-cli 16.20.3

Open
#3,214 1 comment 1 reaction 0 assignees View on GitHub
needs review
Dominant language
TypeScript
Stars
1.4k
Forks
236
Avg merge
3d 1h
Merged PRs (30d)
91

Description

### Build/Submit details page URL

_No response_

### Summary

When I run `eas build --profile preview` and select an Android build, it consistently fails with

```
"android.package" is not defined in your app.config.js and we can't update this file programmatically. Add the value on your own and run this command again.
```

This value is defined in our `app.config.js` file

I reverted the cli to 16.20.0 and the builds pass as expected.

### Managed or bare?

managed

### Environment

expo-env-info 2.0.7 environment info:
System:
OS: macOS 15.5
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.18.0 - ~/.nvm/versions/node/v22.18.0/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 10.9.3 - ~/.nvm/versions/node/v22.18.0/bin/npm
Watchman: 2025.04.28.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.1, iOS 18.1, macOS 15.1, tvOS 18.1, visionOS 2.1, watchOS 11.1
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode: 16.1/16B40 - /usr/bin/xcodebuild
npmPackages:
expo: ^52.0.0 => 52.0.47
expo-router: ~4.0.20 => 4.0.21
react: 18.3.1 => 18.3.1
react-dom: 18.3.1 => 18.3.1
react-native: 0.76.9 => 0.76.9
react-native-web: ~0.19.10 => 0.19.13
npmGlobalPackages:
eas-cli: 16.20.3
Expo Workflow: managed

### Error output

```
"android.package" is not defined in your app.config.js and we can't update this file programmatically. Add the value on your own and run this command again.
Error: "android.package" is not defined in your app.config.js and we can't update this file programmatically. Add the value on your own and run this command again.
at configureApplicationIdAsync (/Users/garrettmccullough/.nvm/versions/node/v22.18.0/lib/node_modules/eas-cli/build/project/android/applicationId.js:101:15)
at ensureApplicationIdIsDefinedForManagedProjectAsync (/Users/garrettmccullough/.nvm/versions/node/v22.18.0/lib/node_modules/eas-cli/build/project/android/applicationId.js:29:22)
at async createAndroidContextAsync (/Users/garrettmccullough/.nvm/versions/node/v22.18.0/lib/node_modules/eas-cli/build/build/android/build.js:44:9)
at async createBuildContextAsync (/Users/garrettmccullough/.nvm/versions/node/v22.18.0/lib/node_modules/eas-cli/build/build/createContext.js:101:22)
at async prepareAndStartBuildAsync (/Users/garrettmccullough/.nvm/versions/node/v22.18.0/lib/node_modules/eas-cli/build/build/runBuildAndSubmit.js:220:22)
at async runBuildAndSubmitAsync (/Users/garrettmccullough/.nvm/versions/node/v22.18.0/lib/node_modules/eas-cli/build/build/runBuildAndSubmit.js:111:49)
at async Build.runAsync (/Users/garrettmccullough/.nvm/versions/node/v22.18.0/lib/node_modules/eas-cli/build/commands/build/index.js:125:35)
at async Build.run (/Users/garrettmccullough/.nvm/versions/node/v22.18.0/lib/node_modules/eas-cli/build/commandUtils/EasCommand.js:168:16)
at async Build._run (/Users/garrettmccullough/.nvm/versions/node/v22.18.0/lib/node_modules/eas-cli/node_modules/@oclif/core/lib/command.js:80:22)
at async Config.runCommand (/Users/garrettmccullough/.nvm/versions/node/v22.18.0/lib/node_modules/eas-cli/node_modules/@oclif/core/lib/config/config.js:301:25)
Error: build command failed.
```

### Reproducible demo or steps to reproduce from a blank project

1. install expo-cli@16.20.3
2. run `eas build --profile preview`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.