ERROR: Asset package include 'C:\Users\jody\apktool\framework\1.apk' not found
ERROR: Asset package include 'C:\Users\jody\apktool\framework\1.apk' not found
我需要 apk 工具来重新打包我的 app.So 我将其安装在 windows 上并在命令行中键入此指令
apktool b decoded myapp.apk
但是我收到这个错误
enter code here I: Copying classes.dex file...
I: Checking whether resources has changed...
I: Building resources...
ERROR: Asset package include 'C:\Users\jody\apktool\framework.apk' not found.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 17, -F, C:\Users\jody\AppData\Local\Temp\APKTOOL8545160768118157496.tmp, -0, arsc, -I, C:\Users\jody\apktool\framework.apk, -S, C:\Users\jody\Desktop\RV2013\result\res, -M, C:\Users\jody\Desktop\RV2013\result\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 17, -F, C:\Users\jody\AppData\Local\Temp\APKTOOL8545160768118157496.tmp, -0, arsc, -I, C:\Users\jody\apktool\framework.apk, -S, C:\Users\jody\Desktop\RV2013\result\res, -M, C:\Users\jody\Desktop\RV2013\result\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 17, -F, C:\Users\jody\AppData\Local\Temp\APKTOOL8545160768118157496.tmp, -0, arsc, -I, C:\Users\jody\apktool\framework.apk, -S, C:\Users\jody\Desktop\RV2013\result\res, -M, C:\Users\jody\Desktop\RV2013\result\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
现在我想问一下如何解决这个错误?
解决方案:更新到最新版本的apktool(撰写本文时为2.1.0)。
新的 apk 在 "dist" 文件夹中。
记得先用 testsign.jar 签名,然后再将其安装到您的设备上。
编辑:记得也要使用 zipalign!
我需要 apk 工具来重新打包我的 app.So 我将其安装在 windows 上并在命令行中键入此指令
apktool b decoded myapp.apk
但是我收到这个错误
enter code here I: Copying classes.dex file...
I: Checking whether resources has changed...
I: Building resources...
ERROR: Asset package include 'C:\Users\jody\apktool\framework.apk' not found.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 17, -F, C:\Users\jody\AppData\Local\Temp\APKTOOL8545160768118157496.tmp, -0, arsc, -I, C:\Users\jody\apktool\framework.apk, -S, C:\Users\jody\Desktop\RV2013\result\res, -M, C:\Users\jody\Desktop\RV2013\result\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 17, -F, C:\Users\jody\AppData\Local\Temp\APKTOOL8545160768118157496.tmp, -0, arsc, -I, C:\Users\jody\apktool\framework.apk, -S, C:\Users\jody\Desktop\RV2013\result\res, -M, C:\Users\jody\Desktop\RV2013\result\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 17, -F, C:\Users\jody\AppData\Local\Temp\APKTOOL8545160768118157496.tmp, -0, arsc, -I, C:\Users\jody\apktool\framework.apk, -S, C:\Users\jody\Desktop\RV2013\result\res, -M, C:\Users\jody\Desktop\RV2013\result\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
现在我想问一下如何解决这个错误?
解决方案:更新到最新版本的apktool(撰写本文时为2.1.0)。
新的 apk 在 "dist" 文件夹中。
记得先用 testsign.jar 签名,然后再将其安装到您的设备上。
编辑:记得也要使用 zipalign!