#4107·Apktool

[BUG]为什么使用aapt2在windows系统上会乱码编译不过

Author: shuajinanhaiCreated Mar 18, 2026Updated May 31, 2026

当前 Apktool 使用版本:最新 正在编译 APK,请稍等...

I: Using Apktool 3.0.1 on project.apk with 8 threads I: Smaling smali folder into classes.dex... I: Building resources with aapt2... W: C:\Apk\AndroidKiller\projects\娑堝け鐨勭敺鍙媉64浣峔Project\res: error: failed to open directory: 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆? (2). Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.common.BrutException: Execution failed (exit code = 1): [C:\Users\wang\AppData\Local\Temp\aapt2_182764841556694684608086071611356084313.tmp, compile, --dir, C:\Apk\AndroidKiller\projects\消失的男友_64位\Project\res, --legacy, -o, C:\Apk\AndroidKiller\projects\消失的男友_64位\Project\build\resources.zip] at brut.androlib.res.AaptInvoker.invoke(SourceFile:90) at brut.androlib.ApkBuilder.buildResources(SourceFile:357) at brut.apktool.Main.main(SourceFile:92) Caused by: brut.common.BrutException: Execution failed (exit code = 1): [C:\Users\wang\AppData\Local\Temp\aapt2_182764841556694684608086071611356084313.tmp, compile, --dir, C:\Apk\AndroidKiller\projects\消失的男友_64位\Project\res, --legacy, -o, C:\Apk\AndroidKiller\projects\消失的男友_64位\Project\build\resources.zip] at brut.util.OS.exec(SourceFile:147) at brut.androlib.res.AaptInvoker.invoke(SourceFile:87) ... 2 more APK 编译失败,无法继续下一步签名!