java表单重复打浆_东方大神进来看下,回编译出现最多的问题,却没有看到有解决方法...

本文记录了一次使用Apktool 2.0.0-Beta7进行资源构建时遇到的问题,具体表现为无法执行aapt命令导致权限被拒绝的异常情况。文中详细展示了错误堆栈,涉及AndrolibException及BrutException等异常。
摘要由CSDN通过智能技术生成

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

如图:

W: Could not find sources

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktoolx/aapt4.2, p, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-name, 4.2.2-I9500XXUBMG9, -F, /data/data/per.pqy.apktool/APKTOOL943140577523194304.tmp, -x, -0, arsc, -S, /storage/sdcard0/framework-res_src/res, -M, /storage/sdcard0/framework-res_src/AndroidManifest.xml]

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

at brut.androlib.Androlib.buildResources(Androlib.java:362)

at brut.androlib.Androlib.build(Androlib.java:285)

at brut.androlib.Androlib.build(Androlib.java:258)

at brut.apktool.Main.cmdBuild(Main.java:233)

at brut.apktool.Main.main(Main.java:88)

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktoolx/aapt4.2, p, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-name, 4.2.2-I9500XXUBMG9, -F, /data/data/per.pqy.apktool/APKTOOL943140577523194304.tmp, -x, -0, arsc, -S, /storage/sdcard0/framework-res_src/res, -M, /storage/sdcard0/framework-res_src/AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:481)

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

... 5 more

Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktoolx/aapt4.2, p, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-name, 4.2.2-I9500XXUBMG9, -F, /data/data/per.pqy.apktool/APKTOOL943140577523194304.tmp, -x, -0, arsc, -S, /storage/sdcard0/framework-res_src/res, -M, /storage/sdcard0/framework-res_src/AndroidManifest.xml]

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

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:475)

... 6 more

Caused by: java.io.IOException: Cannot run program "/data/data/per.pqy.apktoolx/aapt4.2": error=13, Permission denied

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)

at java.lang.Runtime.exec(Runtime.java:615)

at java.lang.Runtime.exec(Runtime.java:483)

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

... 7 more

Caused by: java.io.IOException: error=13, Permission denied

at java.lang.UNIXProcess.forkAndExec(Native Method)

at java.lang.UNIXProcess.(UNIXProcess.java:135)

at java.lang.ProcessImpl.start(ProcessImpl.java:130)

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)

... 10 more

I: Using Apktool 2.0.0-Beta7 on framework-res_src

I: Building resources...

应该是这句出现了问题:Caused by: java.io.IOException: Cannot run program "/data/data/per.pqy.apktoolx/aapt4.2": error=13, Permission denied 请大神解决一下

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值