eas-cli icon indicating copy to clipboard operation
eas-cli copied to clipboard

Android builds failing on eas-cli 16.20.3

Open gwmccull opened this issue 3 months ago • 1 comments

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 [email protected]
  2. run eas build --profile preview

gwmccull avatar Oct 07 '25 21:10 gwmccull

iOS builds are also failing with

"ios.bundleIdentifier" 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: "ios.bundleIdentifier" 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 configureBundleIdentifierAsync (/Users/garrettmccullough/.nvm/versions/node/v22.18.0/lib/node_modules/eas-cli/build/project/ios/bundleIdentifier.js:89:15)
    at ensureBundleIdentifierIsDefinedForManagedProjectAsync (/Users/garrettmccullough/.nvm/versions/node/v22.18.0/lib/node_modules/eas-cli/build/project/ios/bundleIdentifier.js:25:22)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async createIosContextAsync (/Users/garrettmccullough/.nvm/versions/node/v22.18.0/lib/node_modules/eas-cli/build/build/ios/build.js:21:9)
    at async createBuildContextAsync (/Users/garrettmccullough/.nvm/versions/node/v22.18.0/lib/node_modules/eas-cli/build/build/createContext.js:108:18)
    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)
    Error: build command failed.

gwmccull avatar Oct 07 '25 21:10 gwmccull