Skip to content

Zipaligning failed #61

@SharkPika

Description

@SharkPika

I: Using Apktool 2.9.3 on SkyCloudDriven.apk
I: Loading resource table...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\ADMIN\AppData\Local\apktool\framework\1.apk
I: Decoding values / XMLs...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory
[WARNING ] androguard.core.api_specific_resources: Requested API level 35 is larger than maximum we have, returning API level 34 instead.
[INFO ] dcc:
Application class from AndroidManifest.xml, cn.sky.app.SkyApplication

I: Using Apktool 2.9.3
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Copying libs... (/lib)
I: Copying libs... (/kotlin)
I: Copying libs... (/META-INF/services)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk into: .tmp\py6jc4Ea-unsigned.apk
[INFO ] dcc: Zipaligning .tmp\py6jc4Ea-unsigned.apk -> SkyCloudDriven-obf.apk
[INFO ] dcc: Using legacy zipalign (-p)
[ERROR ] dcc: Zipaligning .tmp\py6jc4Ea-unsigned.apk failed!
Traceback (most recent call last):
File "D:\QQ\1127367472\FileRecv\Source\dex2c\dcc.py", line 226, in zipalign
check_call(command, stderr=STDOUT)
File "C:\Program Files\Python312\Lib\subprocess.py", line 408, in check_call
retcode = call(*popenargs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\subprocess.py", line 389, in call
with Popen(*popenargs, **kwargs) as p:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\Python312\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
[WinError 2] 系统找不到指定的文件。
[INFO ] dcc: Signing SkyCloudDriven-obf.apk -> SkyCloudDriven-obf.apk
Exception in thread "main" java.io.FileNotFoundException: SkyCloudDriven-obf.apk (系统找不到指定的文件。)
at java.base/java.io.RandomAccessFile.open0(Native Method)
at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:356)
at java.base/java.io.RandomAccessFile.(RandomAccessFile.java:273)
at java.base/java.io.RandomAccessFile.(RandomAccessFile.java:223)
at com.android.apksig.ApkSigner.sign(ApkSigner.java:208)
at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:414)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:92)
[ERROR ] dcc: Signing SkyCloudDriven-obf.apk failed!
Traceback (most recent call last):
File "D:\QQ\1127367472\FileRecv\Source\dex2c\dcc.py", line 300, in sign
check_call(command, stderr=STDOUT)
File "C:\Program Files\Python312\Lib\subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['java', '-jar', 'D:\QQ\1127367472\FileRecv\Source\dex2c\tools\apksigner.jar', 'sign', '--in', 'SkyCloudDriven-obf.apk', '--out', 'SkyCloudDriven-obf.apk', '--ks', 'keystore/skyclouddriven.keystore', '--ks-key-alias', 'skycloud', '--ks-pass', 'pass:skycloud', '--key-pass', 'pass:skycloud', '--v1-signing-enabled', 'true', '--v2-signing-enabled', 'true', '--v3-signing-enabled', 'true', '--v4-signing-enabled', 'false', '--min-sdk-version', '21', '--max-sdk-version', '29', '--v1-signer-name', 'ANDROID']' returned non-zero exit status 1.
Command '['java', '-jar', 'D:\QQ\1127367472\FileRecv\Source\dex2c\tools\apksigner.jar', 'sign', '--in', 'SkyCloudDriven-obf.apk', '--out', 'SkyCloudDriven-obf.apk', '--ks', 'keystore/skyclouddriven.keystore', '--ks-key-alias', 'skycloud', '--ks-pass', 'pass:skycloud', '--key-pass', 'pass:skycloud', '--v1-signing-enabled', 'true', '--v2-signing-enabled', 'true', '--v3-signing-enabled', 'true', '--v4-signing-enabled', 'false', '--min-sdk-version', '21', '--max-sdk-version', '29', '--v1-signer-name', 'ANDROID']' returned non-zero exit status 1.
[INFO ] dcc: Moving unsigned apk -> SkyCloudDriven-obf.apk
[ERROR ] dcc: Compile SkyCloudDriven.apk failed!
Traceback (most recent call last):
File "D:\QQ\1127367472\FileRecv\Source\dex2c\dcc.py", line 300, in sign
check_call(command, stderr=STDOUT)
File "C:\Program Files\Python312\Lib\subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['java', '-jar', 'D:\QQ\1127367472\FileRecv\Source\dex2c\tools\apksigner.jar', 'sign', '--in', 'SkyCloudDriven-obf.apk', '--out', 'SkyCloudDriven-obf.apk', '--ks', 'keystore/skyclouddriven.keystore', '--ks-key-alias', 'skycloud', '--ks-pass', 'pass:skycloud', '--key-pass', 'pass:skycloud', '--v1-signing-enabled', 'true', '--v2-signing-enabled', 'true', '--v3-signing-enabled', 'true', '--v4-signing-enabled', 'false', '--min-sdk-version', '21', '--max-sdk-version', '29', '--v1-signer-name', 'ANDROID']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\QQ\1127367472\FileRecv\Source\dex2c\dcc.py", line 1235, in
dcc_main(
File "D:\QQ\1127367472\FileRecv\Source\dex2c\dcc.py", line 1109, in dcc_main
sign(outapk, outapk)
File "D:\QQ\1127367472\FileRecv\Source\dex2c\dcc.py", line 304, in sign
move_unsigned(unsigned_apk, signed_apk)
File "D:\QQ\1127367472\FileRecv\Source\dex2c\dcc.py", line 309, in move_unsigned
copy(unsigned_apk, signed_apk)
File "C:\Program Files\Python312\Lib\shutil.py", line 435, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "C:\Program Files\Python312\Lib\shutil.py", line 260, in copyfile
with open(src, 'rb') as fsrc:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'SkyCloudDriven-obf.apk'
[Errno 2] No such file or directory: 'SkyCloudDriven-obf.apk'
[INFO ] dcc: Removing .tmp folder

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