Help to Fix: brut.directory.PathNotExist: apktool.yml - Android Q&A, Help & Troubleshooting

Hi, i cant compile, because this problem, how do i fix it?
log said:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
Click to expand...
Click to collapse

Related

[Help] MIUI PatchRom Error

Hello Guys,
Recently, MIUI is opened up their source *yay Glad to hear that*. This make it possible to compile MIUI to our devices . And i've try to build it,but i have some errors. i just following this nice guide MisterGt guide and ThePCGuy guide.
the error show
Code:
cp -r Phone .build
/home/bear14/MiCode/tools/apktool b .build/Phone .build/Phone.apk
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: could not exec command: [aapt, p, -F, /tmp/APKTOOL8218704267644755494.tmp, -I, /home/bear14/apktool/framework/1.apk, -S, /home/bear14/MiCode/i5503/.build/Phone/res, -M, /home/bear14/MiCode/i5503/.build/Phone/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8218704267644755494.tmp, -I, /home/bear14/apktool/framework/1.apk, -S, /home/bear14/MiCode/i5503/.build/Phone/res, -M, /home/bear14/MiCode/i5503/.build/Phone/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at 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
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
... 10 more
make: *** [.build/Phone.apk] Error 1
could someone tell whats wrong with it ?
if you have try to build it, and have some error we discussed in this thread.
helumaeraba said:
Hello Guys,
Recently, MIUI is opened up their source *yay Glad to hear that*. This make it possible to compile MIUI to our devices . And i've try to build it,but i have some errors. i just following this nice guide MisterGt guide and ThePCGuy guide.
the error show
Code:
cp -r Phone .build
/home/bear14/MiCode/tools/apktool b .build/Phone .build/Phone.apk
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: could not exec command: [aapt, p, -F, /tmp/APKTOOL8218704267644755494.tmp, -I, /home/bear14/apktool/framework/1.apk, -S, /home/bear14/MiCode/i5503/.build/Phone/res, -M, /home/bear14/MiCode/i5503/.build/Phone/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8218704267644755494.tmp, -I, /home/bear14/apktool/framework/1.apk, -S, /home/bear14/MiCode/i5503/.build/Phone/res, -M, /home/bear14/MiCode/i5503/.build/Phone/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at 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
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
... 10 more
make: *** [.build/Phone.apk] Error 1
could someone tell whats wrong with it ?
if you have try to build it, and have some error we discussed in this thread.
Click to expand...
Click to collapse
Try to use the tutorial on my topic in the development thread.
You will see what is the problem.
---------- Post added at 01:08 PM ---------- Previous post was at 01:04 PM ----------
And another one,
You can't build MIUI for non-hdpi devices with this source.
Thanks bro..but now i have another problem..when i finished compile..i and phone is booted,but when booting done,theres no change to that rom,still same with cm7 but without status bar..and some app FC..
Sent from my GT-I5500
helumaeraba said:
Thanks bro..but now i have another problem..when i finished compile..i and phone is booted,but when booting done,theres no change to that rom,still same with cm7 but without status bar..and some app FC..
Sent from my GT-I5500
Click to expand...
Click to collapse
If you aren't a coder tou will not have your MIUI so easy.
You have, first, to resize the images from the source.
And then, a lot of work comes.
coder?idoing by learning..try to understand the coding
Btw Thanks
Sent from my GT-I5500
v6ser said:
Try to use the tutorial on my topic in the development thread.
You will see what is the problem.
---------- Post added at 01:08 PM ---------- Previous post was at 01:04 PM ----------
And another one,
You can't build MIUI for non-hdpi devices with this source.
Click to expand...
Click to collapse
i am sorry,but i cannot find the topic...i am new here...can u give me a link?tx!

Trying to port miui to htc rezound and having a smali error

the error is
/home/josh/patchrom/tools/apktool --quiet b out/services out/services.jar
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: [email protected]
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
make: *** [out/services.jar] Error 1
Any help would be appreciated.

Please help!! Able to decompile ICS APK yet unable to Compile it back again!

Before everything else, don't even try to say to me that I need to research, because I searched and searched I even filled up my computer with a bunch of apktools and aapt and various decompilers, both Command line and with GUI, it's freaking me out! Please help.!!.
-----------------------------------------------------
[*] SystemUI.apk
-----------------------------------------------------
Recompiling SystemUI.apk folder...
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Vince\AppData\Local\Temp\APKTOOL9216640018277012755.tmp, -I, C:\Users\Vince\apktool\framework\1.apk, -S, C:\Users\Vince\Downloads\xdaAutoTool\_INPUT_APK\SystemUI\res, -M, C:\Users\Vince\Downloads\xdaAutoTool\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Vince\AppData\Local\Temp\APKTOOL9216640018277012755.tmp, -I, C:\Users\Vince\apktool\framework\1.apk, -S, C:\Users\Vince\Downloads\xdaAutoTool\_INPUT_APK\SystemUI\res, -M, C:\Users\Vince\Downloads\xdaAutoTool\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Done!
deCompiling = APKTool 1.4.3
Compiling = Tried every version...
on another version of AAPT i get a freaking Invalid resource thingy says that some folders are invalid...

Error Compiling SystemUI ?

Hi. I am apptemping to recompile my SystemUI and I am receiving the following error. Can anyone assist ? Thanks
C:\Users\KC\Desktop\apktool HTC>apktool if framework-res.apk
I: Framework installed to: C:\Users\KC\apktool\framework\1.apk
C:\Users\KC\Desktop\apktool HTC>apktool b SystemUI
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
C:\Users\KC\Desktop\apktool HTC>

error when trying to compile systemui !

Hi guys,
so i decompiled SystemUI.apk ... edited some few things, when i tried to compile it, i got an error.
C:\Users\SzQ\Desktop\apktool>apktool b SystemUI
I: Using Apktool 2.0.3
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java: 263)
at brut.androlib.Androlib.build(Androlib.java:275)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(Abst ractDirectory.java:
105)
at brut.androlib.Androlib.readMetaFile(Androlib.java: 258)
... 4 more
please help!

Categories

Resources