shwenzhang / AndResGuard

proguard resource for Android by wechat team
Apache License 2.0
8.54k stars 1.54k forks source link

生成 新的resources.arsc 错误 #274

Closed caoguodong closed 6 years ago

caoguodong commented 6 years ago

error log: parse to get the exist names in the resouces.arsc first reading packagename xxx.xxx.xxx resources mapping file /xxx/xxx/abc/input/resource_mapping_input.txt done copy res file not in resources.arsc file:drawable-xxhdpi-v4/ic_launcher.png copy res file not in resources.arsc file:drawable-xhdpi-v4/ic_launcher.png writing new resources.arsc resources.arsc Character Encoding: utf-16 java.lang.NullPointerException at com.tencent.mm.util.ExtDataOutput.writeIntArray(ExtDataOutput.java:15) at com.tencent.mm.androlib.res.decoder.StringBlock.writeTableNameStringBlock(StringBlock.java:324) at com.tencent.mm.androlib.res.decoder.ARSCDecoder.writeTable(ARSCDecoder.java:215) at com.tencent.mm.androlib.res.decoder.ARSCDecoder.write(ARSCDecoder.java:127) at com.tencent.mm.androlib.ApkDecoder.decode(ApkDecoder.java:194) at com.tencent.mm.resourceproguard.Main.decodeResource(Main.java:99) at com.tencent.mm.resourceproguard.Main.resourceProguard(Main.java:84) at com.tencent.mm.resourceproguard.cli.CliMain.run(CliMain.java:205) at com.tencent.mm.resourceproguard.cli.CliMain.main(CliMain.java:41)

apk build tool:dexguard use version:AndResGuard-cli-1.2.12 use type:command line command:java -jar AndResGuard-cli-1.2.12.jar input.apk -zipalign /xxx/xxx/xxx/zipalign notice: has installed 7z

simpleton commented 6 years ago

dexguard已经有类似功能,建议不要同时使用

On Mon, Aug 27, 2018 at 12:15 AM caoguodong notifications@github.com wrote:

error log: parse to get the exist names in the resouces.arsc first reading packagename xxx.xxx.xxx resources mapping file /xxx/xxx/abc/input/resource_mapping_input.txt done copy res file not in resources.arsc file:drawable-xxhdpi-v4/ic_launcher.png copy res file not in resources.arsc file:drawable-xhdpi-v4/ic_launcher.png writing new resources.arsc resources.arsc Character Encoding: utf-16 java.lang.NullPointerException at com.tencent.mm.util.ExtDataOutput.writeIntArray(ExtDataOutput.java:15) at com.tencent.mm.androlib.res.decoder.StringBlock.writeTableNameStringBlock(StringBlock.java:324) at com.tencent.mm.androlib.res.decoder.ARSCDecoder.writeTable(ARSCDecoder.java:215) at com.tencent.mm.androlib.res.decoder.ARSCDecoder.write(ARSCDecoder.java:127) at com.tencent.mm.androlib.ApkDecoder.decode(ApkDecoder.java:194) at com.tencent.mm.resourceproguard.Main.decodeResource(Main.java:99) at com.tencent.mm.resourceproguard.Main.resourceProguard(Main.java:84) at com.tencent.mm.resourceproguard.cli.CliMain.run(CliMain.java:205) at com.tencent.mm.resourceproguard.cli.CliMain.main(CliMain.java:41)

apk build tool:dexguard use version:AndResGuard-cli-1.2.12 use type:command line command:java -jar AndResGuard-cli-1.2.12.jar input.apk -zipalign /xxx/xxx/xxx/zipalign notice: has installed 7z

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shwenzhang/AndResGuard/issues/274, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbvYs6vXWg_J0ihqIF2PzvXZciOZCVMks5uU5yugaJpZM4WNS7B .

caoguodong commented 6 years ago

其实只想用7z做一下极限的缩包