help with services.jar #12

Flatzki opened this Issue Feb 24, 2012 · 3 comments

3 participants


hi, i have a prob with services.jar

this is my error

inflating: .build/ZIP/system/xbin/vim

inflating: .build/ZIP/system/build.prop

build .build/services.jar...

cp -r services.jar.out/ .build/services
/home/flatzki/patchrom/tools/ .build/services_miui .build/services
/home/flatzki/patchrom/tools/apktool b .build/services .build/services.jar
I: Checking whether sources has changed...
W: Could not find resources
I: Building apk file...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /home/flatzki/patchrom/ics_miui/.build/services.jar, /home/flatzki/patchrom/ics_miui/.build/services/build/apk]
at brut.androlib.res.AndrolibResources.aaptPackage(
at brut.androlib.Androlib.buildApk(
at brut.apktool.Main.cmdBuild(
at brut.apktool.Main.main(
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /home/flatzki/patchrom/ics_miui/.build/services.jar, /home/flatzki/patchrom/ics_miui/.build/services/build/apk]
at brut.util.OS.exec(
at brut.androlib.res.AndrolibResources.aaptPackage(
... 5 more
Caused by: Cannot run program "aapt": error=2, No such file or directory
at java.lang.ProcessBuilder.start(
at java.lang.Runtime.exec(
at java.lang.Runtime.exec(
at brut.util.OS.exec(
... 6 more
Caused by: error=2, No such file or directory
at java.lang.UNIXProcess.(
at java.lang.ProcessImpl.start(
at java.lang.ProcessBuilder.start(
... 9 more
make: *** [.build/services.jar] Fehler 1

help pls :) i found no answer


did you use a ics ROM?

Android应用开源社区 member

The root cause is that system can't find the aapt tool.You can download android sdk,then unpack it. The aapt is under the tools folder. Add it to your system path,and try again.

Android应用开源社区 member

Yes,We have developed ics ROM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment