[ASK] APKTOOL Recompiling Error - Android Q&A, Help & Troubleshooting

I'm using APKTool to modify AndroidManifest.xml of an APK. I've installed framework-res.apk. The decompile is success, after I'm changed some line on the manifest then rebuilding, the error happened. Even if I didn't make any changes, rebuild is still error.
Code:
C:\ApkTool>apktool b flappymod flappymod.apk
I: Copying classes.dex file...
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, --min-sdk-version, 8, --target-sdk-version, 15, -F, C:\Users\Risal\AppData\Local\Temp\APKTOOL5476941189381566523.tmp, -I, C:\Users\Risal\apktool\framework\1.apk, -S, C:\ApkTool\flappymod\res, -M, C:\ApkTool\flappymod\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 15, -F, C:\Users\Risal\AppData\Local\Temp\APKTOOL5476941189381566523.tmp, -I, C:\Users\Risal\apktool\framework\1.apk, -S, C:\ApkTool\flappymod\res, -M, C:\ApkTool\flappymod\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 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
How to fix this ??

When ever i start compiling with apktool it always gives error,no matter whether it is a system app or normal app.
I want to remove ads in shareit & home screen feed and some annoying things.
After doing all modification i encounter comilation error.
Therefore i delete every thing clean the pc re install JDK,do decompile & it was successful but this time i did nothing modification.Just decompile & recompile.But same error.
Code:
C:\Users\CHANDU\Documents\APK Easy Tool\1-Decompiled APKs>apktool b shareitoriginal
I: Using Apktool 2.2.2
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether resources has changed...
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, 16, --target-sdk-version, 19, --version-code, 4040058, --version-name, 4.0.58_ww, --no-version-vectors, -F, C:\Users\CHANDU\AppData\Local\Temp\APKTOOL9574286527521199604.tmp, -0, webp, -0, ini, -0, arsc, -I, C:\Users\CHANDU\AppData\Local\apktool\framework\1.apk, -S, C:\Users\CHANDU\Documents\APK Easy Tool\1-Decompiled APKs\shareitoriginal\res, -M, C:\Users\CHANDU\Documents\APK Easy Tool\1-Decompiled APKs\shareitoriginal\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, 16, --target-sdk-version, 19, --version-code, 4040058, --version-name, 4.0.58_ww, --no-version-vectors, -F, C:\Users\CHANDU\AppData\Local\Temp\APKTOOL9574286527521199604.tmp, -0, webp, -0, ini, -0, arsc, -I, C:\Users\CHANDU\AppData\Local\apktool\framework\1.apk, -S, C:\Users\CHANDU\Documents\APK Easy Tool\1-Decompiled APKs\shareitoriginal\res, -M, C:\Users\CHANDU\Documents\APK Easy Tool\1-Decompiled APKs\shareitoriginal\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, 16, --target-sdk-version, 19, --version-code, 4040058, --version-name, 4.0.58_ww, --no-version-vectors, -F, C:\Users\CHANDU\AppData\Local\Temp\APKTOOL9574286527521199604.tmp, -0, webp, -0, ini, -0, arsc, -I, C:\Users\CHANDU\AppData\Local\apktool\framework\1.apk, -S, C:\Users\CHANDU\Documents\APK Easy Tool\1-Decompiled APKs\shareitoriginal\res, -M, C:\Users\CHANDU\Documents\APK Easy Tool\1-Decompiled APKs\shareitoriginal\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
Note that decompilation was always error less.
Code:
C:\Users\CHANDU\Documents\APK Easy Tool\1-Decompiled APKs>apktool d shareitoriginal.apk
I: Using Apktool 2.2.2 on shareitoriginal.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\CHANDU\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
So can somebody tell me why this error is occuring ?

THIS TIME I DID NOT MODIFY RESOURCES BUT STILL ERROR
Code:
D:\APK>apktool d -f -r shareit.apk
I: Using Apktool 2.2.2 on shareit.apk
I: Copying raw resources...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
D:\APK>apktool b shareit
I: Using Apktool 2.2.2
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Copying raw resources...
I: Copying libs... (/lib)
I: Building apk file...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [aapt, p, --no-version-vectors, -F, D:\APK\shareit\dist\shareit.apk, -0, arsc, -0, hcp, -0, arsc, -A, D:\APK\shareit\assets, D:\APK\shareit\build\apk]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:440)
at brut.androlib.Androlib.buildApk(Androlib.java:674)
at brut.androlib.Androlib.build(Androlib.java:314)
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.common.BrutException: could not exec: [aapt, p, --no-version-vectors, -F, D:\APK\shareit\dist\shareit.apk, -0, arsc, -0, hcp, -0, arsc, -A, D:\APK\shareit\assets, D:\APK\shareit\build\apk]
at brut.util.OS.exec(OS.java:97)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:434)
... 5 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)
... 6 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)
... 9 more
D:\APK>

Related

[Q] apktool ics error all the time

hello .. need help
could some want help me for resolve the problem
i try to update aapt.exe .. jar and else i have the same result .. thank you big appreciated
C:\ICS Apktool>apktool d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\ICS Apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\GumZ\AppData\Local\Temp\
APKTOOL9205491744427801309.tmp, -x, -0, arsc, -S, C:\ICS Apktool\framework-res\r
es, -M, C:\ICS Apktool\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:
\Users\GumZ\AppData\Local\Temp\APKTOOL9205491744427801309.tmp, -x, -0, arsc, -S,
C:\ICS Apktool\framework-res\res, -M, C:\ICS Apktool\framework-res\AndroidManif
est.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 15, --target-sdk-version, 15, -F, C:\Users\GumZ\AppData\Local\Temp\AP
KTOOL9205491744427801309.tmp, -x, -0, arsc, -S, C:\ICS Apktool\framework-res\res
, -M, C:\ICS Apktool\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\ICS Apktool>

decompiling/compiling error[framework files missing]

hey,i am trying to decompile contacts.apk from my micromax a52.
i tried from apk manager and apk multi tools but it is giving error
Code:
can't find framework resources for package of id:2.you must install proper framework files.
now i installed framework files to my computer and also by using "pull dependencies from device".
but still couldn't decompile it properly.it is also giving error during recompiling if i ignore those error and mod it.
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
plsss someone give a helping hand.
Have sdk installed and then try again.I could not help with apkmulti tools but in original apktool,you can install frameworks with
Code:
java -jar apktool.jar if framework-apk
Sent from my GT-N7000 using xda app-developers app
already installed framework!!
vijai2011 said:
Have sdk installed and then try again.I could not help with apkmulti tools but in original apktool,you can install frameworks with
Code:
java -jar apktool.jar if framework-apk
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
have already installed framework from my phone from which that app is taken.
amank22 said:
have already installed framework from my phone from which that app is taken.
Click to expand...
Click to collapse
If its a samsung phone,did yoh also install twframework-res.apk?And htc also has 1 more framework but I don't know what it is as I have never owned a htc or modded one.Also have sdk?
Sent from my GT-N7000 using xda app-developers app
amank22 said:
hey,i am trying to decompile contacts.apk from my micromax a52.
i tried from apk manager and apk multi tools but it is giving error
Code:
can't find framework resources for package of id:2.you must install proper framework files.
now i installed framework files to my computer and also by using "pull dependencies from device".
but still couldn't decompile it properly.it is also giving error during recompiling if i ignore those error and mod it.
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
plsss someone give a helping hand.
Click to expand...
Click to collapse
Pull out all the *.apk files from /system/framework/
N install them.
The frst bein framework-res.apk n thn the others.
Only *.apk files. Not *.jar files.
I tink it will help u get over your prblms..
Don't be lazy.
Lift your hand n press the Thanxxx Button.=)
ok ok..will do it n tell it if it solves my problem..
help me i have same issue when i compliling
i'm installed java and framework-res.apk
Please enter the number of your choice: 1
Enter the name of the folder to assembly (ex: dis_Name.apk) : dis_commod.apk
FICHIER
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\documents\ANDROID\tool mod android\easy apk\
dis_commod.apk\res/drawable-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 9, --target-sdk-version, 18, -F, C:\Users\Finish\AppData\Local\Temp
\APKTOOL2014611683841755200.tmp, -0, arsc, -I, C:\Users\Finish\apktool\framework
\1.apk, -S, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\res, -
M, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\AndroidManifest
.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 18, -F, C:\
Users\Finish\AppData\Local\Temp\APKTOOL2014611683841755200.tmp, -0, arsc, -I, C:
\Users\Finish\apktool\framework\1.apk, -S, D:\documents\ANDROID\tool mod android
\easy apk\dis_commod.apk\res, -M, D:\documents\ANDROID\tool mod android\easy apk
\dis_commod.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 9, --target-sdk-version, 18, -F, C:\Users\Finish\AppData\Local\Temp\A
PKTOOL2014611683841755200.tmp, -0, arsc, -I, C:\Users\Finish\apktool\framework\1
.apk, -S, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\res, -M,
D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
java.io.FileNotFoundException: dis_commod.apk\dist\commod.apk (The system cannot
find the path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:320)
Press any key to continue . . .
Click to expand...
Click to collapse
change the path names
superuser.pm said:
help me i have same issue when i compliling
i'm installed java and framework-res.apk
Click to expand...
Click to collapse
I think your problem lies in this line:
Code:
invalid resource directory name: D:\documents\ANDROID\tool mod android\easy apk\
dis_commod.apk\res/drawable-xxhdpi
try to remove the blank charcters from the path...change folder names in the path.
I have this error when I try to compile:
Code:
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Proprietario\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:176: error: Error retrieving parent for item: No resource found that matches the given name 'Base.ThemeOverlay'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:462: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:506: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:527: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:535: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values-v21\styles.xml:65: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:554: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:564: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat.DropDownItem'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:603: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 21, -F, C:\Users\PROPRI~1\AppData\Local\Temp\APKTOOL3070521381926684717.tmp, -0, arsc, -I, C:\Users\Proprietario\apktool\framework\1.apk, -S, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res, -M, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 21, -F, C:\Users\PROPRI~1\AppData\Local\Temp\APKTOOL3070521381926684717.tmp, -0, arsc, -I, C:\Users\Proprietario\apktool\framework\1.apk, -S, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res, -M, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 21, -F, C:\Users\PROPRI~1\AppData\Local\Temp\APKTOOL3070521381926684717.tmp, -0, arsc, -I, C:\Users\Proprietario\apktool\framework\1.apk, -S, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res, -M, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
What's the problem?
Thanks.

Compiling APK problem

Code:
C:\Users\David\Desktop\Android Tools\apktool1.5.2>apktool if framework-res.apk
I: Framework installed to: C:\Users\David\apktool\framework\1.apk
C:\Users\David\Desktop\Android Tools\apktool1.5.2>apktool d Home.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\David\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\David\apktool\framework\2.apk
I: Loaded.
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\David\Desktop\Android Tools\apktool1.5.2>apktool b Home Home.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:21:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:29:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout.CuiMainMenuItem'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values-land\styles.xm
l:3: error: Error retrieving parent for item: No resource found that matches the
given name 'Layout.CuiMainMenuItem'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:45:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout.CuiMainMenuItem'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:53:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values-land\styles.xm
l:24: error: Error retrieving parent for item: No resource found that matches th
e given name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\David\AppData\Local\Temp
\APKTOOL8829101515579145139.tmp, -0, arsc, -I, C:\Users\David\apktool\framework\
1.apk, -I, C:\Users\David\apktool\framework\2.apk, -S, C:\Users\David\Desktop\An
droid Tools\apktool1.5.2\Home\res, -M, C:\Users\David\Desktop\Android Tools\apkt
ool1.5.2\Home\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:
\Users\David\AppData\Local\Temp\APKTOOL8829101515579145139.tmp, -0, arsc, -I, C:
\Users\David\apktool\framework\1.apk, -I, C:\Users\David\apktool\framework\2.apk
, -S, C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res, -M, C:\Users\D
avid\Desktop\Android Tools\apktool1.5.2\Home\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\David\AppData\Local\Temp\A
PKTOOL8829101515579145139.tmp, -0, arsc, -I, C:\Users\David\apktool\framework\1.
apk, -I, C:\Users\David\apktool\framework\2.apk, -S, C:\Users\David\Desktop\Andr
oid Tools\apktool1.5.2\Home\res, -M, C:\Users\David\Desktop\Android Tools\apktoo
l1.5.2\Home\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Here is the log. as you can see the framework is installed but I still get some problem in the values

Can't rebuild using ApkTool

Hi,
I am trying to translate the ROM MIUI in French for my personal use, but I'm having problems when I rebuild an apk using ApkTool.
I've downloaded MIUI from here : en.miui.com/thread-2651-1-1.html for my Huawei Honor2 U9508
I've redownloaded ApkTool from Google Code several time and reinstall Java. I also run CMD as an administrator.
I've tried to decompiled several MIUI apk like Backup.apk, Contact.apk, DesClock.apk... But I always get the same error.
Also I hadn't touch or add anything in the apk.
Here is what I get on CMD :
Code:
Microsoft Windows [version 6.2.9200]
(c) 2012 Microsoft Corporation. Tous droits réservés.
C:\Windows\system32>cd C:\Apktool\
C:\Apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Thomas\apktool\framework\1.apk
C:\Apktool>apktool if framework-miui-res.apk
I: Framework installed to: C:\Users\Thomas\apktool\framework\6.apk
C:\Apktool>apktool d Backup.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Thomas\apktool\framework\1.apk
I: Loaded.
I: Loading resource table from file: C:\Users\Thomas\apktool\framework\6.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Apktool>apktool b Backup C:\Apktool\Compile\Backup.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Apktool\Backup\res/values-largeui
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Thomas\AppData\Local\Tem
p\APKTOOL6764776722780995012.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framewor
k\1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res,
-M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:
\Users\Thomas\AppData\Local\Temp\APKTOOL6764776722780995012.tmp, -0, arsc, -I, C
:\Users\Thomas\apktool\framework\1.apk, -I, C:\Users\Thomas\apktool\framework\6.
apk, -S, C:\Apktool\Backup\res, -M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\Thomas\AppData\Local\Temp\
APKTOOL6764776722780995012.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framework\
1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res, -
M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Apktool>
Can anyone help my with those errors ?
Thanks,
MrSawler
MrSawler said:
Hi,
I am trying to translate the ROM MIUI in French for my personal use, but I'm having problems when I rebuild an apk using ApkTool.
I've downloaded MIUI from here : en.miui.com/thread-2651-1-1.html for my Huawei Honor2 U9508
I've redownloaded ApkTool from Google Code several time and reinstall Java. I also run CMD as an administrator.
I've tried to decompiled several MIUI apk like Backup.apk, Contact.apk, DesClock.apk... But I always get the same error.
Also I hadn't touch or add anything in the apk.
Here is what I get on CMD :
Code:
invalid resource directory name: C:\Apktool\Backup\res/values-largeui
Can anyone help my with those errors ?
Thanks,
MrSawler
Click to expand...
Click to collapse
It's really only one error. Apktool hasn't heard of the values-largeui folder. Try deleting that folder and trying again.
That should work. If it turns out you need that folder for the app to work..well, then you're in trouble.
Sent from my SK17i using XDA Premium 4 mobile app
Ticklefish said:
It's really only one error. Apktool hasn't heard of the values-largeui folder. Try deleting that folder and trying again.
That should work. If it turns out you need that folder for the app to work..well, then you're in trouble.
Sent from my SK17i using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Hi,
Thanks for the answer. I've juste deleted the folder but I'm having a new error :
Microsoft Windows [version 6.2.9200]
(c) 2012 Microsoft Corporation. Tous droits réservés.
C:\Windows\system32>cd C:\Apktool\
C:\Apktool>apktool b Backup C:\Apktool\Compile\Backup.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Apktool\Backup\res\values\public.xml:60: error: Public symbol bool/miui_font_
scale_switch declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Thomas\AppData\Local\Tem
p\APKTOOL55933037199130517.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framework\
1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res, -
M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:
\Users\Thomas\AppData\Local\Temp\APKTOOL55933037199130517.tmp, -0, arsc, -I, C:\
Users\Thomas\apktool\framework\1.apk, -I, C:\Users\Thomas\apktool\framework\6.ap
k, -S, C:\Apktool\Backup\res, -M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\Thomas\AppData\Local\Temp\
APKTOOL55933037199130517.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framework\1.
apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res, -M,
C:\Apktool\Backup\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Apktool>
Click to expand...
Click to collapse
And when I delete the line in public.xml, I'm getting another error :
C:\Apktool>apktool b Backup C:\Apktool\Compile\Backup.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Thomas\AppData\Local\Tem
p\APKTOOL4253075425418164642.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framewor
k\1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res,
-M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:
\Users\Thomas\AppData\Local\Temp\APKTOOL4253075425418164642.tmp, -0, arsc, -I, C
:\Users\Thomas\apktool\framework\1.apk, -I, C:\Users\Thomas\apktool\framework\6.
apk, -S, C:\Apktool\Backup\res, -M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\Thomas\AppData\Local\Temp\
APKTOOL4253075425418164642.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framework\
1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res, -
M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Apktool>
Click to expand...
Click to collapse
MrSawler said:
Hi,
I am trying to translate the ROM MIUI in French for my personal use, but I'm having problems when I rebuild an apk using ApkTool.
I've downloaded MIUI from here : en.miui.com/thread-2651-1-1.html for my Huawei Honor2 U9508
I've redownloaded ApkTool from Google Code several time and reinstall Java. I also run CMD as an administrator.
I've tried to decompiled several MIUI apk like Backup.apk, Contact.apk, DesClock.apk... But I always get the same error.
Also I hadn't touch or add anything in the apk.
Here is what I get on CMD :
Code:
Microsoft Windows [version 6.2.9200]
(c) 2012 Microsoft Corporation. Tous droits réservés.
C:\Windows\system32>cd C:\Apktool\
C:\Apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Thomas\apktool\framework\1.apk
C:\Apktool>apktool if framework-miui-res.apk
I: Framework installed to: C:\Users\Thomas\apktool\framework\6.apk
C:\Apktool>apktool d Backup.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Thomas\apktool\framework\1.apk
I: Loaded.
I: Loading resource table from file: C:\Users\Thomas\apktool\framework\6.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Apktool>apktool b Backup C:\Apktool\Compile\Backup.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Apktool\Backup\res/values-largeui
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Thomas\AppData\Local\Tem
p\APKTOOL6764776722780995012.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framewor
k\1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res,
-M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:
\Users\Thomas\AppData\Local\Temp\APKTOOL6764776722780995012.tmp, -0, arsc, -I, C
:\Users\Thomas\apktool\framework\1.apk, -I, C:\Users\Thomas\apktool\framework\6.
apk, -S, C:\Apktool\Backup\res, -M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\Thomas\AppData\Local\Temp\
APKTOOL6764776722780995012.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framework\
1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res, -
M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Apktool>
Can anyone help my with those errors ?
Thanks,
MrSawler
Click to expand...
Click to collapse
Hi Bro For Miui apk its require special miui apktool
download the miui apktool from here
MrSawler said:
Hi,
I am trying to translate the ROM MIUI in French for my personal use, but I'm having problems when I rebuild an apk using ApkTool.
I've downloaded MIUI from here : en.miui.com/thread-2651-1-1.html for my Huawei Honor2 U9508
I've redownloaded ApkTool from Google Code several time and reinstall Java. I also run CMD as an administrator.
I've tried to decompiled several MIUI apk like Backup.apk, Contact.apk, DesClock.apk... But I always get the same error.
Also I hadn't touch or add anything in the apk.
Here is what I get on CMD :
Code:
Microsoft Windows [version 6.2.9200]
(c) 2012 Microsoft Corporation. Tous droits réservés.
C:\Windows\system32>cd C:\Apktool\
C:\Apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Thomas\apktool\framework\1.apk
C:\Apktool>apktool if framework-miui-res.apk
I: Framework installed to: C:\Users\Thomas\apktool\framework\6.apk
C:\Apktool>apktool d Backup.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Thomas\apktool\framework\1.apk
I: Loaded.
I: Loading resource table from file: C:\Users\Thomas\apktool\framework\6.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Apktool>apktool b Backup C:\Apktool\Compile\Backup.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Apktool\Backup\res/values-largeui
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Thomas\AppData\Local\Tem
p\APKTOOL6764776722780995012.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framewor
k\1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res,
-M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:
\Users\Thomas\AppData\Local\Temp\APKTOOL6764776722780995012.tmp, -0, arsc, -I, C
:\Users\Thomas\apktool\framework\1.apk, -I, C:\Users\Thomas\apktool\framework\6.
apk, -S, C:\Apktool\Backup\res, -M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\Thomas\AppData\Local\Temp\
APKTOOL6764776722780995012.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framework\
1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res, -
M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Apktool>
Can anyone help my with those errors ?
Thanks,
MrSawler
Click to expand...
Click to collapse
Don't delete that folder, invalid resource directory errors are often due to old aapt. Make sure you are using latest aapt.
Sent from my Sony Xperia L (C2104) using Tapatalk 4 beta
Hi,
khan_frd2002 said:
Hi Bro For Miui apk its require special miui apktool
download the miui apktool from here
Click to expand...
Click to collapse
Thanks for the link, it work now, I have no more error, thanks !
varun.chitre15 said:
Don't delete that folder, invalid resource directory errors are often due to old aapt. Make sure you are using latest aapt.
Sent from my Sony Xperia L (C2104) using Tapatalk 4 beta
Click to expand...
Click to collapse
Do you know where I can only download appt ? Do I have to download the whole SDK ? Because my internet connection is a little bit slow...
MrSawler said:
Hi,
Thanks for the link, it work now, I have no more error, thanks !
Do you know where I can only download appt ? Do I have to download the whole SDK ? Because my internet connection is a little bit slow...
Click to expand...
Click to collapse
you cant get the latest apktool and appt from here
http://forum.xda-developers.com/showthread.php?t=1755243
khan_frd2002 said:
you cant get the latest apktool and appt from here
http://forum.xda-developers.com/showthread.php?t=1755243
Click to expand...
Click to collapse
Hi,
Thanks for the link, but that was where I've download Apktool and aapt, so they where not out of date.
But your MIUI Apktool seems to be working, so I will juste use it instead. But is it possible to make the same for Linux ? I would like to use it with Debian too.
Thanks,
MrSawler

[HELP]Can't recompile LGSystemUI.apk

Hello,
I am having issues recomping my LGSystemUI.apk even without modifications.
I have deodexed the apk successfully a guide on here (someone was told to deodex the apk for a similar problem)
I have installed framework-res.apk and lge-res.apk to the apk tool folder (version apktool-install-windows-r05-ibot.tar.bz2) successfully as well as the LGSystemUI.apk. Decompiling goes smoothly but I get the same error every time I try to recompile and it's driving me absolutely insane! NOTE: I installed framework, etc into both C:\baksmali and C:\apktool in hopes that one of them would work--this is the code for C:\baksmali but it is the same output in both folders when recompiling. I tried both apktool b LGSystemUI LGSystemUInew.apk and apktool b C:\baksmali\LGSystemUI LGSystemUInew.apk
Edit: This is on the Optimus F3
Code:
C:\baksmali>apktool if framework-res.apk
I: Framework installed to: C:\Users\Chris\apktool\framework\1.apk
C:\baksmali>apktool if lge-res.apk
I: Framework installed to: C:\Users\Chris\apktool\framework\2.apk
C:\baksmali>apktool if LGSystemUI.apk
I: Framework installed to: C:\Users\Chris\apktool\framework\127.apk
C:\baksmali>apktool d LGSystemUI.apk
I: Using Apktool 2.0.0-RC2 on LGSystemUI.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Chris\apktool\framework\1.apk
I: Loading resource table from file: C:\Users\Chris\apktool\framework\2.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
C:\baksmali>apktool b LGSystemUI LGSystemUI-new.apk
I: Using Apktool 2.0.0-RC2 on LGSystemUI
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Chris\
AppData\Local\Temp\brut_util_Jar_1310886965740495272.tmp, p, --forced-package-id
, 2, --min-sdk-version, 16, --target-sdk-version, 16, --rename-manifest-package,
com.android.systemui, --version-code, 16, --version-name, 4.1.2-LS720ZV5.136819
3247, -F, C:\Users\Chris\AppData\Local\Temp\APKTOOL7534181060513143275.tmp, -0,
arsc, -I, C:\Users\Chris\apktool\framework\1.apk, -I, C:\Users\Chris\apktool\fra
mework\2.apk, -S, C:\baksmali\LGSystemUI\res, -M, C:\baksmali\LGSystemUI\Android
Manifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:449)
at brut.androlib.Androlib.buildResources(Androlib.java:383)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Chris\AppData\Local\Temp\brut_util_Jar_1310886965740495
272.tmp, p, --forced-package-id, 2, --min-sdk-version, 16, --target-sdk-version,
16, --rename-manifest-package, com.android.systemui, --version-code, 16, --vers
ion-name, 4.1.2-LS720ZV5.1368193247, -F, C:\Users\Chris\AppData\Local\Temp\APKTO
OL7534181060513143275.tmp, -0, arsc, -I, C:\Users\Chris\apktool\framework\1.apk,
-I, C:\Users\Chris\apktool\framework\2.apk, -S, C:\baksmali\LGSystemUI\res, -M,
C:\baksmali\LGSystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:487)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Chris\Ap
pData\Local\Temp\brut_util_Jar_1310886965740495272.tmp, p, --forced-package-id,
2, --min-sdk-version, 16, --target-sdk-version, 16, --rename-manifest-package, c
om.android.systemui, --version-code, 16, --version-name, 4.1.2-LS720ZV5.13681932
47, -F, C:\Users\Chris\AppData\Local\Temp\APKTOOL7534181060513143275.tmp, -0, ar
sc, -I, C:\Users\Chris\apktool\framework\1.apk, -I, C:\Users\Chris\apktool\frame
work\2.apk, -S, C:\baksmali\LGSystemUI\res, -M, C:\baksmali\LGSystemUI\AndroidMa
nifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
... 6 more
Caused by: java.io.IOException: Cannot run program "C:\Users\Chris\AppData\Local
\Temp\brut_util_Jar_1310886965740495272.tmp": CreateProcess error=5, Access is d
enied
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:84)
... 7 more
Caused by: java.io.IOException: CreateProcess error=5, Access is denied
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
C:\baksmali>apktool b C:\baksmali\LGSystemUI LGSystemUInew.apk
I: Using Apktool 2.0.0-RC2 on LGSystemUI
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Chris\
AppData\Local\Temp\brut_util_Jar_6183905094663782385.tmp, p, --forced-package-id
, 2, --min-sdk-version, 16, --target-sdk-version, 16, --rename-manifest-package,
com.android.systemui, --version-code, 16, --version-name, 4.1.2-LS720ZV5.136819
3247, -F, C:\Users\Chris\AppData\Local\Temp\APKTOOL1830770158558091930.tmp, -0,
arsc, -I, C:\Users\Chris\apktool\framework\1.apk, -I, C:\Users\Chris\apktool\fra
mework\2.apk, -S, C:\baksmali\LGSystemUI\res, -M, C:\baksmali\LGSystemUI\Android
Manifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:449)
at brut.androlib.Androlib.buildResources(Androlib.java:383)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Chris\AppData\Local\Temp\brut_util_Jar_6183905094663782
385.tmp, p, --forced-package-id, 2, --min-sdk-version, 16, --target-sdk-version,
16, --rename-manifest-package, com.android.systemui, --version-code, 16, --vers
ion-name, 4.1.2-LS720ZV5.1368193247, -F, C:\Users\Chris\AppData\Local\Temp\APKTO
OL1830770158558091930.tmp, -0, arsc, -I, C:\Users\Chris\apktool\framework\1.apk,
-I, C:\Users\Chris\apktool\framework\2.apk, -S, C:\baksmali\LGSystemUI\res, -M,
C:\baksmali\LGSystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:487)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Chris\Ap
pData\Local\Temp\brut_util_Jar_6183905094663782385.tmp, p, --forced-package-id,
2, --min-sdk-version, 16, --target-sdk-version, 16, --rename-manifest-package, c
om.android.systemui, --version-code, 16, --version-name, 4.1.2-LS720ZV5.13681932
47, -F, C:\Users\Chris\AppData\Local\Temp\APKTOOL1830770158558091930.tmp, -0, ar
sc, -I, C:\Users\Chris\apktool\framework\1.apk, -I, C:\Users\Chris\apktool\frame
work\2.apk, -S, C:\baksmali\LGSystemUI\res, -M, C:\baksmali\LGSystemUI\AndroidMa
nifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
... 6 more
Caused by: java.io.IOException: Cannot run program "C:\Users\Chris\AppData\Local
\Temp\brut_util_Jar_6183905094663782385.tmp": CreateProcess error=5, Access is d
enied
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:84)
... 7 more
Caused by: java.io.IOException: CreateProcess error=5, Access is denied
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
C:\baksmali>
Thanks for your time.
I ran cmd as administrator and got this output:
Code:
C:\Users\Chris\apktool>apktool b LGSystemUI new.apk
I: Using Apktool 2.0.0-RC2 on LGSystemUI
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
C:\Users\Chris\apktool>
no errors, but no new apk either. I'm so confused

Categories

Resources