apktool重新打包错误

网友投稿 638 2022-09-12

apktool重新打包错误

apktool重新打包错误

E:\apktool-install-windows-r05-ibot\apktool

-install-windows-r05-ibot\.\test_apk_name\res\layout-large\abs__action_mode_close_ite

m.xml:5: error: No resource identifier found for attribute 'textAllCaps' in pack

age 'android'

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl

ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-

sdk-version, 8, --target-sdk-version, 15, -F, C:\Users\ADMINI~1\AppData\Local\Te

mp\APKTOOL5334589254772572111.tmp, -0, arsc, -I, C:\Users\Administrator\apktool\

framework\1.apk, -S, E:\apktool-install-win

dows-r05-ibot\apktool-install-windows-r05-ibot\.\test_apk_name\res, -M, E:\快盘\pc_de

mo_code\软件\android反汇编\apktool-install-windows-r05-ibot\apktool-install-wind

ows-r05-ibot\.\test_apk_name\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, 15, -F, C:\

Users\ADMINI~1\AppData\Local\Temp\APKTOOL5334589254772572111.tmp, -0, arsc, -I,

C:\Users\Administrator\apktool\framework\1.apk, -S, E:\快盘\pc_demo_code\软件\an

droid反汇编\apktool-install-windows-r05-ibot\apktool-install-windows-r05-ibot\.\

test_apk_name\res, -M, E:\apktool-install-window

s-r05-ibot\apktool-install-windows-r05-ibot\.\test_apk_name\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav

a:357)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)

... 5 more

Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd

k-version, 8, --target-sdk-version, 15, -F, C:\Users\ADMINI~1\AppData\Local\Temp

\APKTOOL5334589254772572111.tmp, -0, arsc, -I, C:\Users\Administrator\apktool\fr

amework\1.apk, -S, E:\apktool-install-windo

ws-r05-ibot\apktool-install-windows-r05-ibot\.\test_apk_name\res, -M, E:\快盘\pc_demo

_code\软件\android反汇编\apktool-install-windows-r05-ibot\apktool-install-window

s-r05-ibot\.\test_apk_name\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:89)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav

a:355)

... 6 more

(1)设置aapt.exe的路径到PATH路径

(2)之前一位是aapt.exe不对,用本机的adt-bundle-windows-x86_64-20131030\sdk\build-tools\android-4.4\aapt.exe替换到-的aapt.exe

(3)删除这个文件C:\Users\Administrator\apktool\framework\1.apk ,马上打包就好了。

版本信息

jdk 1.7 + apktool1.5(之前一位需要1.6的jdk,实际上1.7的jdk也可以的)

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:RFID为什么选择Turck Vilant System?
下一篇:使用MailKit发送带有内嵌图片的邮件且图片不显示成附件(图片怎么以附件形式发送邮箱)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~