Hi,
I just moved from windows to mac las week and i tried to use apktool on it but when i try to recompile the file i keep receiving this errors
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [aapt, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 21, --version-code, 1, --version-name, 1.0, --no-version-vectors, -F, /var/folders/rq/95s03v09065br4w8dyg6n__00000gn/T/APKTOOL13452202057815908857.tmp, -0, arsc, -0, arsc, -I, /Users/macbookpro/Library/apktool/framework/1.apk, -S, /Users/macbookpro/juusttest/res, -M, /Users/macbookpro/juusttest/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:477)
at brut.androlib.Androlib.buildResources(Androlib.java:411)
at brut.androlib.Androlib.build(Androlib.java:310)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [aapt, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 21, --version-code, 1, --version-name, 1.0, --no-version-vectors, -F, /var/folders/rq/95s03v09065br4w8dyg6n__00000gn/T/APKTOOL13452202057815908857.tmp, -0, arsc, -0, arsc, -I, /Users/macbookpro/Library/apktool/framework/1.apk, -S, /Users/macbookpro/juusttest/res, -M, /Users/macbookpro/juusttest/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:440)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:463)
... 5 more
Caused by: brut.common.BrutException: could not exec: [aapt, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 21, --version-code, 1, --version-name, 1.0, --no-version-vectors, -F, /var/folders/rq/95s03v09065br4w8dyg6n__00000gn/T/APKTOOL13452202057815908857.tmp, -0, arsc, -0, arsc, -I, /Users/macbookpro/Library/apktool/framework/1.apk, -S, /Users/macbookpro/juusttest/res, -M, /Users/macbookpro/juusttest/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:97)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:434)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at brut.util.OS.exec(OS.java:90)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:339)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:270)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 9 more
Have anyone here faced the same problem ?
PS: java version “9.0.1”
apktool version : 2.2.2