Skip to content

fix(cli): reject apksigner for Android App Bundles - #8568

Open
Boulea7 wants to merge 1 commit into
ionic-team:mainfrom
Boulea7:zln-fix-8428-aab-apksigner
Open

fix(cli): reject apksigner for Android App Bundles#8568
Boulea7 wants to merge 1 commit into
ionic-team:mainfrom
Boulea7:zln-fix-8428-aab-apksigner

Conversation

@Boulea7

@Boulea7 Boulea7 commented Aug 11, 2026

Copy link
Copy Markdown

Description

Reject Android App Bundle builds configured with apksigner before Gradle or signing commands run. The CLI keeps jarsigner as its default and uses the same resolved signing tool for validation and dispatch.

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation
  • Other (CI, chores, etc.)

Rationale / Problems Fixed

apksigner only supports APK files. Passing an AAB to it currently produces a misleading MinSdkVersionException / missing manifest error after the bundle has been built. The new validation explains how to select jarsigner or build an APK instead.

Fixes #8428

Tests or Reproductions

  • npm test -- --runTestsByPath test/build.android.spec.ts (5 tests passed)
  • npm test --workspace @capacitor/cli (89 tests passed)
  • npm run build --workspace @capacitor/cli
  • npm run lint

The regression tests cover the rejected AAB/apksigner combination and the valid default AAB, explicit AAB/jarsigner, APK/apksigner, and APK/jarsigner paths. External commands are mocked at the runCommand process boundary. A real Android SDK and keystore signing run was not performed.

Screenshots / Media

Not applicable.

Platforms Affected

  • Android
  • iOS
  • Web

Notes / Comments

SwiftLint was skipped by node-swiftlint because validation ran on Linux; the TypeScript and formatting portions of the official lint command passed.

@Boulea7
Boulea7 marked this pull request as ready for review August 11, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: cap build android fails with cryptic MinSdkVersionException / Missing AndroidManifest.xml when using apksigner with AAB (related to #6909)

1 participant