ionic-team / ionic-team/capacitor

[Bug]: cap build android generates broken signed apk

Open
#8,106 5 comments 0 reactions 0 assignees View on GitHub
bug platform: android
Dominant language
TypeScript
Stars
16.7k
Forks
1.3k
Avg merge
3d 15h
Merged PRs (30d)
10

Description

### Capacitor Version

Latest Dependencies:

@capacitor/cli: 7.4.2
@capacitor/core: 7.4.2
@capacitor/android: 7.4.2
@capacitor/ios: 7.4.2

Installed Dependencies:

@capacitor/ios: not installed
@capacitor/core: 7.4.2
@capacitor/cli: 7.4.2
@capacitor/android: 7.4.2

### Other API Details

```Shell
npm --version: 10.9.2
yarn --version: 1.22.22
node --version: v22.17.1
JAVA_HOME=C:\Program Files\Microsoft\jdk-21.0.8.9-hotspot\
minSdkVersion = 31
```

### Platforms Affected

- [ ] iOS
- [x] Android
- [ ] Web

### Current Behavior

Generates app-release-signed.apk that doesn't install on devices/emulators

### Expected Behavior

Generate a functional signed apk

### Project Reproduction

https://github.com/luisfelipeluis49/CAPACITOR_BUG_ANDROID/

### Additional Information

Android Studio build signed apk using the same keystore, generates a signed apk that works when installed on a device/emulator.

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.