Skip to content

Unable to sign APK due to FileAlreadyExistsException #343

@wq1110

Description

@wq1110

Describe the bug
Unable to generate APKS file from an AAB bundle, getting an Unable to sign APK error caused by a FileAlreadyExistsException within C:/Users/name/AppData/Local/Temp

Bundletool version(s) affected
Version: 1.15.4

Stacktrace
image

To Reproduce

Generated an AAB file using command ionic cordova build android --release
New file created successfully, named aab-release.aab
Run the following command: java -jar .\bundletool.jar build-apks --bundle=app-release.aab --output=./app-signed.apks --ks=C:/keystore/location/my.keystore --ks-key-alias=alias_name
I'm prompted to enter the password for the keystore, enter the correct keystore password
Expected behavior
Generated an APKS file with some sort of successful message on the console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions