Problem with ICS task switcher - Galaxy Y GT-S5360 General

I am not allowed to post in the dev forums since my 10 post threshold has not been reached.
I tired following the instructions in the thread
[HOW TO] [GUIDE] Add ICS/Jellybean like Task Switcher....[update] but im getting the following error
Code:
W: Could not find sources
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/APKTOOL4241886766110930173.tmp, -x, -S, /home/deep/Desktop/mod/frame/res, -M, /home/deep/Desktop/mod/frame/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/APKTOOL4241886766110930173.tmp, -x, -S, /home/deep/Desktop/mod/frame/res, -M, /home/deep/Desktop/mod/frame/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": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
... 10 more

DiGtal said:
I am not allowed to post in the dev forums since my 10 post threshold has not been reached.
I tired following the instructions in the thread
[HOW TO] [GUIDE] Add ICS/Jellybean like Task Switcher....[update] but im getting the following error
Code:
W: Could not find sources
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/APKTOOL4241886766110930173.tmp, -x, -S, /home/deep/Desktop/mod/frame/res, -M, /home/deep/Desktop/mod/frame/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/APKTOOL4241886766110930173.tmp, -x, -S, /home/deep/Desktop/mod/frame/res, -M, /home/deep/Desktop/mod/frame/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": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
... 10 more
Click to expand...
Click to collapse
ur aapt.exe is corrupt or not there

Im using linux(Ubuntu 12.04).
How do i get that in linux?
In windows, I have aapt.exe.

Related

Apk recompile error - HELP

guys, i've been decompiling and compiling for some time now. and never got the compiling error. but today, i add some lines to an xml file in the apk. and while compiling, as it got to Building resources, it gave the following error, res/xml/settings_headers.xml. yes thats the file i added lines too. anyways, could anyone help me out here? :/ i tried reinstalling framework, got the new apktool.jar and aapt.exe. but still no luck, i checked the lines for any typing errors, but was unable to find any. help.
emwno said:
guys, i've been decompiling and compiling for some time now. and never got the compiling error. but today, i add some lines to an xml file in the apk. and while compiling, as it got to Building resources, it gave the following error, res/xml/settings_headers.xml. yes thats the file i added lines too. anyways, could anyone help me out here? :/ i tried reinstalling framework, got the new apktool.jar and aapt.exe. but still no luck, i checked the lines for any typing errors, but was unable to find any. help.
Click to expand...
Click to collapse
Maybe unicorns ate half your file...
Got some logs? the error that appears will tell you what is wrong. if you dont know what it is saying pop the log here and we can help. if there are hundreds of errors put them in CODE quotes
Code:
like this
or put the file here so we can see it might help too...
Pvy
pvyParts said:
Maybe unicorns ate half your file...
Got some logs? the error that appears will tell you what is wrong. if you dont know what it is saying pop the log here and we can help. if there are hundreds of errors put them in CODE quotes
Code:
like this
or put the file here so we can see it might help too...
Pvy
Click to expand...
Click to collapse
D: unicorns exist. i knew it!!.
anyways, here it is,
Code:
C:\apktool>apktool b settings
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\settings\res\xml\settings_headers.xml:19: error: Error parsing XML: m
ismatched tag
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-ver
sion, 16, -F, C:\Users\Aashir\AppData\Local\Temp\APKTOOL7503268580718875465.tmp,
-I, C:\Users\Aashir\apktool\framework\1.apk, -S, C:\apktool\settings\res, -M, C
:\apktool\settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\Aashir\AppData\Local\Temp\
APKTOOL7503268580718875465.tmp, -I, C:\Users\Aashir\apktool\framework\1.apk, -S,
C:\apktool\settings\res, -M, C:\apktool\settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
emwno said:
D: unicorns exist. i knew it!!.
anyways, here it is,
Code:
C:\apktool>apktool b settings
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\settings\res\xml\settings_headers.xml:19: error: Error parsing XML: m
ismatched tag
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-ver
sion, 16, -F, C:\Users\Aashir\AppData\Local\Temp\APKTOOL7503268580718875465.tmp,
-I, C:\Users\Aashir\apktool\framework\1.apk, -S, C:\apktool\settings\res, -M, C
:\apktool\settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\Aashir\AppData\Local\Temp\
APKTOOL7503268580718875465.tmp, -I, C:\Users\Aashir\apktool\framework\1.apk, -S,
C:\apktool\settings\res, -M, C:\apktool\settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
Click to expand...
Click to collapse
Line 19 mismatched tag
Sent from my Galaxy Nexus using xda premium

Modding Phone.apk

Ok I have the newest apktool 1.5.2 I have installed framework-res.apk and com.htc.resources.apk but get warnings seems this is normal. I decompile Phone.apk and then tried recompiling it without making changes trying to troubleshoot the issue and I get these error's any help please.
Code:
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: c:\APK\phone\res/drawable-land-xxhdpi
invalid resource directory name: c:\APK\phone\res/drawable-xxhdpi
invalid resource directory name: c:\APK\phone\res/values-land-xxhdpi
invalid resource directory name: c:\APK\phone\res/values-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, -F, C:\Users\JASONC~1\AppData\Local\Temp\APKTOOL827132729019243
5011.tmp, -0, arsc, -I, C:\Users\Jason CCCE LLC\apktool\framework\1.apk, -I, C:\
Users\Jason CCCE LLC\apktool\framework\2.apk, -S, c:\APK\phone\res, -M, c:\APK\p
hone\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, -F, C:\Users\JASONC~1\AppData\Lo
cal\Temp\APKTOOL8271327290192435011.tmp, -0, arsc, -I, C:\Users\Jason CCCE LLC\a
pktool\framework\1.apk, -I, C:\Users\Jason CCCE LLC\apktool\framework\2.apk, -S,
c:\APK\phone\res, -M, c:\APK\phone\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, -F, C:\Users\JASONC~1\AppData\Local\Temp\APKTOOL82713272901924350
11.tmp, -0, arsc, -I, C:\Users\Jason CCCE LLC\apktool\framework\1.apk, -I, C:\Us
ers\Jason CCCE LLC\apktool\framework\2.apk, -S, c:\APK\phone\res, -M, c:\APK\pho
ne\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Try upgrading your aapt binary with the latest one.
Riyal said:
Try upgrading your aapt binary with the latest one.
Click to expand...
Click to collapse
I have to no avail.
The_new_user said:
I have to no avail.
Click to expand...
Click to collapse
Have you tried with framework-res.apk from api14 or api16? It should work.
There's a BUG of Phone.apk.
You can't recompile it unless you fix that bug.
(But I don't know how to fix it. :目)

[Q]settings_headers.xml [Still Need help]

so i wanted to know how to add text under a headder i created , how would i do that
so i added this under the strings.xml
<string name="header_category_advanced">Credits</string>
and then this under public.xml
<public type="string" name="header_category_advanced" id="0x7f0b0658" />
but i have no idea what to add to the setting_headers.xml , what would i add because i wanted to know how to add a name and then a reason underneath
and yess i will include your name in my credits
Also i get this Error, how would i fix it? because i would like to Recompile without silly errors (yes i did install the frameworks before hand Decompiling)
[email protected]:~$ cd adt
[email protected]:~/adt$ cd apk
[email protected]:~/adt/apk$ ls
framework-res.apk SemcGenericUxpRes.apk Settings Settings.apk
[email protected]:~/adt/apk$ apktool b -f -d Settings
I: Smaling...
I: Building resources...
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2132: error: Resource entry author_header is already defined.
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2130: Originally defined here.
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2133: error: Resource entry author_name is already defined.
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2131: Originally defined here.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --debug-mode, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL6676528475699020740.tmp, -0, arsc, -I, /home/ubuntu/apktool/framework/1.apk, -S, /home/ubuntu/adt/apk/Settings/res, -M, /home/ubuntu/adt/apk/Settings/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, --debug-mode, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL6676528475699020740.tmp, -0, arsc, -I, /home/ubuntu/apktool/framework/1.apk, -S, /home/ubuntu/adt/apk/Settings/res, -M, /home/ubuntu/adt/apk/Settings/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, --debug-mode, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL6676528475699020740.tmp, -0, arsc, -I, /home/ubuntu/apktool/framework/1.apk, -S, /home/ubuntu/adt/apk/Settings/res, -M, /home/ubuntu/adt/apk/Settings/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
[email protected]:~/adt/apk$
Envious_Data said:
so im trying to add a credits item to the about phone menu in the settings and i can seem to figure out how , ive looked at tutorials alot of them are useless to me due to my horrible interpretation skills (can hardly call them skills)
could someone directly , and spesificly explain how i add a new menu , with a credits item with credits
im sure with just the information on how to make menu, sub menu/item and etc, i will be able to make others
im also going to try and add the white balance settings apk
any help would be apreciated, ill add your name to the credits of my ROM... in the menu you helped me create
Click to expand...
Click to collapse
Hi there,
Please use this guide - http://forum.xda-developers.com/showpost.php?p=37296483&postcount=3
to add Headers [options] in your settings.apk. Then if I were you then I would create a very simple app in Eclipse which would only contain some TextViews to display the credits and change the target class in settings.apk to the MainActivity of the credits app [the one which has to be made in Eclipse]. That should hopefully do it
Regards,
abcdjdj
thank you
so since im not going to be making the app in eclipse im hoping to maybe add the data within the settings apk
thanks for your help and your name will be put in my credits
Envious_Data said:
so i wanted to know how to add text under a headder i created , how would i do that
so i added this under the strings.xml
<string name="header_category_advanced">Credits</string>
and then this under public.xml
<public type="string" name="header_category_advanced" id="0x7f0b0658" />
but i have no idea what to add to the setting_headers.xml , what would i add because i wanted to know how to add a name and then a reason underneath
and yess i will include your name in my credits
Also i get this Error, how would i fix it? because i would like to Recompile without silly errors (yes i did install the frameworks before hand Decompiling)
[email protected]:~$ cd adt
[email protected]:~/adt$ cd apk
[email protected]:~/adt/apk$ ls
framework-res.apk SemcGenericUxpRes.apk Settings Settings.apk
[email protected]:~/adt/apk$ apktool b -f -d Settings
I: Smaling...
I: Building resources...
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2132: error: Resource entry author_header is already defined.
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2130: Originally defined here.
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2133: error: Resource entry author_name is already defined.
/home/ubuntu/adt/apk/Settings/res/values/strings.xml:2131: Originally defined here.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --debug-mode, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL6676528475699020740.tmp, -0, arsc, -I, /home/ubuntu/apktool/framework/1.apk, -S, /home/ubuntu/adt/apk/Settings/res, -M, /home/ubuntu/adt/apk/Settings/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, --debug-mode, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL6676528475699020740.tmp, -0, arsc, -I, /home/ubuntu/apktool/framework/1.apk, -S, /home/ubuntu/adt/apk/Settings/res, -M, /home/ubuntu/adt/apk/Settings/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, --debug-mode, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL6676528475699020740.tmp, -0, arsc, -I, /home/ubuntu/apktool/framework/1.apk, -S, /home/ubuntu/adt/apk/Settings/res, -M, /home/ubuntu/adt/apk/Settings/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
[email protected]:~/adt/apk$
Click to expand...
Click to collapse
No need to manually add the id in public.xml. Just add the string and recompile
ok
abcdjdj said:
No need to manually add the id in public.xml. Just add the string and recompile
Click to expand...
Click to collapse
that explains that , but could you please explain how i would get around the Recompiling issue?
ps thanks again
thanks , Issue sorted out , turns out that for some reason my aapt had gone missing

APK recompile error

Howdy all. I posted this in the general Q&A sub forum over a month ago and never got a reply. Just looking for an update (or better apk decompiler/recompiler) so I will not get these errors. I've already tried APK Manager, Apk multitool, and Eclipse that came with the Android SDK. I'm all outta ideas.
radji said:
Howdy all. Speak slowly and in small words...I'm not fluent in android.
I am retheming a mail app (as I've done about a dozen times before). This time during recompile, it spits out the value/dimension/string not allowed error. Is there an update to get around this? The only XML I edited in the whole app is the app name in the strings.
Code:
C:\Program Files (x86)\Android\sdk\other\..\projects\com.yahoo.mobile.client.android.mail-3.0.5.apk\res\values-v17\styles.xml:8: error: Error: Dimension types not allowed (at 'android:textUnderlineColor' with value '8.0dip').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 15, -F, C:\Users\RaduG\AppData\Local\Temp\APKTOOL2763599769371012799.tmp, -0, arsc, -I, C:\Users\RaduG\apktool\framework\1.apk, -S, C:\Program Files (x86)\Android\sdk\other\..\projects\com.yahoo.mobile.client.android.mail-3.0.5.apk\res, -M, C:\Program Files (x86)\Android\sdk\other\..\projects\com.yahoo.mobile.client.android.mail-3.0.5.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, 8, --target-sdk-version, 15, -F, C:\Users\RaduG\AppData\Local\Temp\APKTOOL2763599769371012799.tmp, -0, arsc, -I, C:\Users\RaduG\apktool\framework\1.apk, -S, C:\Program Files (x86)\Android\sdk\other\..\projects\com.yahoo.mobile.client.android.mail-3.0.5.apk\res, -M, C:\Program Files (x86)\Android\sdk\other\..\projects\com.yahoo.mobile.client.android.mail-3.0.5.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, 8, --target-sdk-version, 15, -F, C:\Users\RaduG\AppData\Local\Temp\APKTOOL2763599769371012799.tmp, -0, arsc, -I, C:\Users\RaduG\apktool\framework\1.apk, -S, C:\Program Files (x86)\Android\sdk\other\..\projects\com.yahoo.mobile.client.android.mail-3.0.5.apk\res, -M, C:\Program Files (x86)\Android\sdk\other\..\projects\com.yahoo.mobile.client.android.mail-3.0.5.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Click to expand...
Click to collapse
Questions and Help issues go in Q&A and Help section
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator

[HELP]I cant add JB animations to my GB

i cant add JB animations to GB. theirs hundreds of tuts i followed and they dont work when i compile my apk i get the following error
Code:
C:\Documents and Settings\XDarkMario\Desktop\ApkTool>apktool b framework-res
I: Using Apktool 2.0.0-Beta9 on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-res\AndroidManife
st.xml:1: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\DOCUME~1\XDA
RKM~1\LOCALS~1\Temp\brut_util_Jar_6834059745000365220.tmp, p, --forced-package-i
d, 1, --min-sdk-version, 10, --target-sdk-version, 10, --version-code, 10, --ver
sion-name, 2.3.7, -F, C:\DOCUME~1\XDARKM~1\LOCALS~1\Temp\APKTOOL2680947754549401
578.tmp, -x, -S, C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-
res\res, -M, C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-res\
AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:435)
at brut.androlib.Androlib.buildResources(Androlib.java:363)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\DOCUME~1\XDARKM~1\LOCALS~1\Temp\brut_util_Jar_683405974500036
5220.tmp, p, --forced-package-id, 1, --min-sdk-version, 10, --target-sdk-version
, 10, --version-code, 10, --version-name, 2.3.7, -F, C:\DOCUME~1\XDARKM~1\LOCALS
~1\Temp\APKTOOL2680947754549401578.tmp, -x, -S, C:\Documents and Settings\XDarkM
ario\Desktop\ApkTool\framework-res\res, -M, C:\Documents and Settings\XDarkMario
\Desktop\ApkTool\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:470)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:416)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\DOCUME~1\XDARK
M~1\LOCALS~1\Temp\brut_util_Jar_6834059745000365220.tmp, p, --forced-package-id,
1, --min-sdk-version, 10, --target-sdk-version, 10, --version-code, 10, --versi
on-name, 2.3.7, -F, C:\DOCUME~1\XDARKM~1\LOCALS~1\Temp\APKTOOL268094775454940157
8.tmp, -x, -S, C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-re
s\res, -M, C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-res\An
droidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:464)
... 6 more
Here:
Code:
C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-res\AndroidManife
st.xml:1: error: Error parsing XML: not well-formed (invalid token)
As you can see, something is wrong in the first line of the .xml. look for "invalid tokens" such as commas or symbols that should not be where they are.
I've been looking into how to fix these errors lately and I ran into this awesome xml plugin for notepad ++ it can detect script errors. Ill give this another shot
R800Q

Categories

Resources