Error while Compiling Home.apk

Search This thread

ShyamSasi

Senior Member
Dec 10, 2010
3,031
1,914
CLASSIFIED
I get this error while compiling.

Code:
D:\APK Manager\other\..\projects\Home.apk\res\values\styles.xml:16: error: Error
 retrieving parent for item: No resource found that matches the given name 'Layo
ut'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\SHYAMS~1\AppData\Local\Tem
p\APKTOOL1060512814595837586.tmp, -I, C:\Users\Shyam Sasindran\apktool\framework
\1.apk, -S, D:\APK Manager\other\..\projects\Home.apk\res, -M, D:\APK Manager\ot
her\..\projects\Home.apk\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
        at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
        at brut.androlib.Androlib.buildResources(Unknown Source)
        at brut.androlib.Androlib.build(Unknown Source)
        at brut.androlib.Androlib.build(Unknown Source)
        at brut.apktool.Main.cmdBuild(Unknown Source)
        at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\SHYAMS~1\AppData\Local\Temp\APKTOOL1060512814595837586.tmp, -I, C:\Users\Sh
yam Sasindran\apktool\framework\1.apk, -S, D:\APK Manager\other\..\projects\Home
.apk\res, -M, D:\APK Manager\other\..\projects\Home.apk\AndroidManifest.xml]
        at brut.util.OS.exec(Unknown Source)
        ... 7 more
The system cannot find the file specified.

Not sure what I'm doing wrong. I treid to decomplie with resources and tried to add framework-res.apk and SemcGenericUxpRes.apk
 
Last edited:

SXUsr

Senior Member
Jul 11, 2010
8,161
2,877
Here =)

whalesplaho

Senior Member
Feb 1, 2012
10,694
2,670
Treasure Island
Help please

i get dis error while recompiling.....

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more


but i cant find layout in styles.xml!!!! Help..
:mad::mad::mad:

---------- Post added at 08:23 AM ---------- Previous post was at 08:20 AM ----------

My styles.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="transparent_dialog" parent="@android:style/Theme.Dialog">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsTranslucent">true</item>
</style>
<style name="Transparent">
<item name="android:windowBackground">@color/transparent</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item>
</style>
<style name="MyDialog" parent="@android:style/Theme.Dialog">
<item name="android:windowBackground">@android:color/transparent</item>
</style>
</resources>
 

ro1407

Member
Jan 9, 2012
13
1
Error in ReCompiling

I just decompiled and recompiled a apk file and am getting the below error. Kindly let me know wether any other software is needed or any changes has to be made in any of the decompiled file so that i can successfully recompile it.

=======================================
Re-compiling ta1.apk...please wait...
=======================================
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Windows\TEMP\APKTOOL1064752158977321242.tmp, -I, C:\Users\Sgm\apktool\framework\1.apk, -S, E:\APKTool\ta1\res, -M, E:\APKTool\ta1\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:\Windows\TEMP\APKTOOL1064752158977321242.tmp, -I, C:\Users\Sgm\apktool\framework\1.apk, -S, E:\APKTool\ta1\res, -M, E:\APKTool\ta1\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
===========> Task terminated due to above error(s)! <===========
 
Last edited:

luiseteyo

Senior Member
Oct 24, 2011
2,457
2,220
Madrid
I had the same issue. I can give u two advices. Use also this:

Code:
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk

then extract classes.dex

recompile using

Code:
apktool b Home

and reinsert classes.dex
 
  • Like
Reactions: EAGLEBOOY

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...
    2
    Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...

    Works!! Super thank, but..is it same with other SE stock apk? like...Contacts, Phone, setting or anything else> ? :D
    1
    Works!! Super thank, but..is it same with other SE stock apk? like...Contacts, Phone, setting or anything else> ? :D


    Maybe you can edit phone.apk
    Or you want to change icon?
    If yes you can change icon on drawable-hdpi
    Sent from my LT15i using XDA App
    1
    I had the same issue. I can give u two advices. Use also this:

    Code:
    apktool if framework-res.apk
    apktool if SemcGenericUxpRes.apk

    then extract classes.dex

    recompile using

    Code:
    apktool b Home

    and reinsert classes.dex