[Android Software/Hacking General [Developers Only]] spamsub:
Hello I have this issue when I was trying to compile an apk even after I'd just decompiled it. It sent a message " Compile failed. Please check the log".

The log:

22/05/2018 1:27:27 PM
Compiling APK file...

/c "java -Xmx1024m -jar "C:\Program Files (x86)\APK Easy Tool\Apktool\apktool_2.2.2.jar" b -f -o "C:\Users\Administrator\Documents\APK Easy Tool\2-Recompiled APKs\TT.apk" "C:\Users\Administrator\Documents\APK Easy Tool\1-Decompiled APKs\TT" "

I: Using Apktool 2.2.2
I: Smaling smali folder into classes.dex...
I: Building resources...
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, 19, --target-sdk-version, 19, --version-code, 190012, --version-name, 1.6.5, --no-version-vectors, -F, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL13349627771521095800.tmp, -0, arsc, -0, arsc, -I, C:\Users\Administrator\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Administrator\Documents\APK Easy Tool\1-Decompiled APKs\TT\res, -M, C:\Users\Administrator\Documents\APK Easy Tool\1-Decompiled APKs\TT\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, 19, --target-sdk-version, 19, --version-code, 190012, --version-name, 1.6.5, --no-version-vectors, -F, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL13349627771521095800.tmp, -0, arsc, -0, arsc, -I, C:\Users\Administrator\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Administrator\Documents\APK Easy Tool\1-Decompiled APKs\TT\res, -M, C:\Users\Administrator\Documents\APK Easy Tool\1-Decompiled APKs\TT\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, 19, --target-sdk-version, 19, --version-code, 190012, --version-name, 1.6.5, --no-version-vectors, -F, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL13349627771521095800.tmp, -0, arsc, -0, arsc, -I, C:\Users\Administrator\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Administrator\Documents\APK Easy Tool\1-Decompiled APKs\TT\res, -M, C:\Users\Administrator\Documents\APK Easy Tool\1-Decompiled APKs\TT\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": CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(Unknown Source)
at java.base/java.lang.ProcessBuilder.start(Unknown Source)
at brut.util.OS.exec(OS.java:90)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.<init>(Unknown Source)
at java.base/java.lang.ProcessImpl.start(Unknown Source)
... 10 more