java - how do I solve the brut.androlib.AndrolibException -
i having following exception after decoding apk in debug mode , trying build new apk in debug mode. confused , don't do. when try following getting same result.
$java -jar ./apktool.jar d -d meet.apk out $java -jar ./apktool.jar b -d out meet.apk
or this
$./apktool d -d meet.apk out $./apktool b -d out meet.apk
i following output
i: checking whether sources has changed... i: smaling... i: checking whether resources has changed... i: building resources... exception in thread "main" brut.androlib.androlibexception: brut.common.brutexception: not exec command: [aapt, p, -f, /tmp/apktool4160944918573250929.tmp, -i, /root/apktool/framework/1.apk, -s, /home/lab2alex/documents/out/res, -m, /home/lab2alex/documents/out/androidmanifest.xml] @ brut.androlib.res.androlibresources.aaptpackage(androlibresources.java:193) @ brut.androlib.androlib.buildresourcesfull(androlib.java:301) @ brut.androlib.androlib.buildresources(androlib.java:248) @ brut.androlib.androlib.build(androlib.java:171) @ brut.androlib.androlib.build(androlib.java:154) @ brut.apktool.main.cmdbuild(main.java:174) @ brut.apktool.main.main(main.java:59) caused by: brut.common.brutexception: not exec command: [aapt, p, -f, /tmp/apktool4160944918573250929.tmp, -i, /root/apktool/framework/1.apk, -s, /home/lab2alex/documents/out/res, -m, /home/lab2alex/documents/out/androidmanifest.xml] @ brut.util.os.exec(os.java:87) @ brut.androlib.res.androlibresources.aaptpackage(androlibresources.java:191) ... 6 more caused by: java.io.ioexception: cannot run program "aapt": java.io.ioexception: error=2, no such file or directory @ java.lang.processbuilder.start(processbuilder.java:488) @ java.lang.runtime.exec(runtime.java:610) @ java.lang.runtime.exec(runtime.java:483) @ brut.util.os.exec(os.java:78) ... 7 more caused by: java.io.ioexception: java.io.ioexception: error=2, no such file or directory @ java.lang.unixprocess.<init>(unixprocess.java:164) @ java.lang.processimpl.start(processimpl.java:81) @ java.lang.processbuilder.start(processbuilder.java:470) ... 10 more
what should do
in case you've been using v1 , upgraded v2, try manually deleting framework file.
on windows 8 it's @ c:\users\yourname\apktool\framework\1.apk
.
the file should regenerated once try build something.
Comments
Post a Comment