infacto opened a new issue #1076:
URL: https://github.com/apache/cordova-android/issues/1076
# Bug Report
## Problem
### What is expected to happen?
Installing the APK on the device after signing and zipalign.
### What does actually happen?
The installation throws an error:
> adb: failed to install app-release-signed.apk: Failure
[INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2]
## Information
Another repo with Cordova-Android `8.0.0` works. ...
### Command or Code
```bash
# Signing
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore
release.keystore -storepass {password} app-release-unsigned.apk "{key alias
name}"
# ZipAlign
zipalign -v 4 app-release-unsigned.apk app-release-signed.apk
# Installing
adb install app-release-signed.apk
```
Result:
```text
adb: failed to install app-release-signed.apk: Failure
[INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2]
```
### Environment, Platform, Device
Installing on Android device version `7.0` via USB and `adb install
app-release-signed.apk`. The installation of the apk after copy via
file-manager on device also fails. But the error test is too common, so I use
adb for debugging this.
More infos, see "Version informations".
### Version information
Cordova-Android: `9.0.0`
Windows 10 Pro 64-bit: `2004`
Android\Sdk\build-tools\: `29.0.2`
## Checklist
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]