Skip to content

Multiple ZIP entries with the same name: AndroidManifest.xml///.xml #169

@AndroidMaster25

Description

@AndroidMaster25

Describe the bug
Apksigner.jar can't sign the apk protected by apkeditor.

To Reproduce
Steps to reproduce the behavior:

  1. Used version v1.4.2
  2. Operating system Windows 11

Log/Stacktrace

[01:19] Exception in thread "main" com.android.apksig.apk.ApkFormatException: Multiple ZIP entries with the same name: AndroidManifest.xml///.xml
[01:19] 	at com.android.apksig.ApkSigner.parseZipCentralDirectory(ApkSigner.java:939)
[01:19] 	at com.android.apksig.ApkSigner.sign(ApkSigner.java:282)
[01:19] 	at com.android.apksig.ApkSigner.sign(ApkSigner.java:237)
[01:19] 	at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:425)
[01:19] 	at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:94)

Used apk file
https://apkcombo.app/duel-links/jp.konami.duellinks/download/apk

Additional context
I used apktool to decompile/compile apk, protect apk using apkeditor and sign using apksigner from Android SDK. I know apkeditor support recompiling but I want to keep using apktool to maintain compatibility with my scripts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions