I get error - Android Q&A, Help & Troubleshooting

Hey I am getting this error when trying to build in APKTool -
C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9 \AndroidManifest.xml:2: error:
No resource identifier found for attribute 'installLocation' in package 'androi
d'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Matias\AppData\Local\Temp\
APKTOOL2036701665567611021.tmp, -I, C:\Users\Matias\apktool\framework\1.apk, -S,
C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9 \res, -M, C:\Users\Matias\Des
ktop\Desktop\Drag_Racing_v1.1.9\AndroidManifest.xm l]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a: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:\U
sers\Matias\AppData\Local\Temp\APKTOOL203670166556 7611021.tmp, -I, C:\Users\Mati
as\apktool\framework\1.apk, -S, C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1
.9\res, -M, C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9 \AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:191)
I read on the internet the API level has to be set more than 8 to fix this problem.
How to set the API level more than 8 on APKTool?

Try apk manager. Apk tool gave me a lot of trouble!
Accidentally sent from my Google Nexus S using XDA Premium

Related

[Q] Error in Apktool.

Hey I am getting this error when trying to build in APKTool -
C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9\AndroidManifest.xml:2: error:
No resource identifier found for attribute 'installLocation' in package 'androi
d'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Matias\AppData\Local\Temp\
APKTOOL2036701665567611021.tmp, -I, C:\Users\Matias\apktool\framework\1.apk, -S,
C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9\res, -M, C:\Users\Matias\Des
ktop\Desktop\Drag_Racing_v1.1.9\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\Matias\AppData\Local\Temp\APKTOOL2036701665567611021.tmp, -I, C:\Users\Mati
as\apktool\framework\1.apk, -S, C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1
.9\res, -M, C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
I read on the internet the API level has to be set more than 8 to fix this problem.
How to set the API level more than 8 on APKTool?

MiuiMusic apk Compiling

need some help i was trying to change the color of the lyrics that displayed in miui wanted to change it to the color purple to match the theme i have on it. I used apktool to decompile but getting this error while recompiling can someone help me. My Question is why is this happening?
H:\apktool1.4.3\miuimusic\res\values\colors.xml:62 : error: Error: No resource fo
und that matches the given name (at 'audio_player_lyric_current_text_n' with val
ue '@android:color/purple').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\DOCUME~1\belsmith\LOCALS~1\Temp\
APKTOOL4750143335413059235.tmp, -I, C:\Documents and Settings\belsmith\apktool\f
ramework\1.apk, -S, H:\apktool1.4.3\miuimusic\res, -M, H:\apktool1.4.3\miuimusic
\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a: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:\D
OCUME~1\belsmith\LOCALS~1\Temp\APKTOOL475014333541 3059235.tmp, -I, C:\Documents
and Settings\belsmith\apktool\framework\1.apk, -S, H:\apktool1.4.3\miuimusic\res
, -M, H:\apktool1.4.3\miuimusic\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:191)
... 6 more

(Help) I got these error when im compiling my SystemUI

I,m using Samsung Galaxy Y and its a 2.3.6 Gingerbread. I was trying to mod something. and when i complie it shows these errors,
1) "C:\apk\SystemUI\res\values\public.xml:227: error: Public symbol drawable/stat_sys_data_fully_connected_lte declared here is not defined."
Where should i define this? In which xml?
and 2) is this
"Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\ruby\LOCALS~1\Temp\APKTOOL7719548176379540634.tmp, -I, C:\Documents and Settings\ruby\apktool\framework\1.apk, -S, C:\Documents and Settings\ruby\Desktop\Apk_Manager_5.0.2\other\..\projects\Hype-SystemUI.apk\res, -M, C:\Documents and Settings\ruby\Desktop\Apk_Manager_5.0.2\other\..\projects\Hype-SystemUI.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:\DOCUME~1\ruby\LOCALS~1\Temp\APKTOOL7719548176379540634.tmp, -I, C:\Documents and Settings\ruby\apktool\framework\1.apk, -S, C:\Documents and Settings\ruby\Desktop\Apk_Manager_5.0.2\other\..\projects\Hype-SystemUI.apk\res, -M, C:\Documents and Settings\ruby\Desktop\Apk_Manager_5.0.2\other\..\projects\Hype-SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more"
What it is? Im really confused. So please someone help me!!!

Translating MIUI 4 - I stuck on Settings.apk

Hello, I'm trying to translate my MIUI 4 port. I have translater MiuiSystemUI.apk, and now I recompiled Settings.apk, translated strings but I can't compile it back. I'm getting stupid error all the time. Please help me if you can.
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, H:\DOCUME~1\ks\USTAWI~1\Temp\APKTOOL4900171214982366998.tmp, -I, H:\Documents and Settings\ks\apktool\framework\1.apk, -I, H:\Documents and Settings\ks\apktool\framework\6.apk, -S, H:\Documents and Settings\ks\Pulpit\AutoAPKTool2.0.4\_INPUT_APK\Settings\res, -M, H:\Documents and Settings\ks\Pulpit\AutoAPKTool2.0.4\_INPUT_APK\Settings\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, H:\DOCUME~1\ks\USTAWI~1\Temp\APKTOOL4900171214982366998.tmp, -I, H:\Documents and Settings\ks\apktool\framework\1.apk, -I, H:\Documents and Settings\ks\apktool\framework\6.apk, -S, H:\Documents and Settings\ks\Pulpit\AutoAPKTool2.0.4\_INPUT_APK\Settings\res, -M, H:\Documents and Settings\ks\Pulpit\AutoAPKTool2.0.4\_INPUT_APK\Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Here is log from whole operation

[Help]Android Apktool

sorry i know i'm not good at english since this is my 3rd lang i hope you can understand
...ikr i should'nt be lazy and should be searching for topic that can fixed this but i already did that even tried all armel and armhf available versions but i still can't recompile so maybe i should just ask for help by making a topic here
so here it is after i decompile using 4.3.1 armhf since i have armv7 i can't use armel it gives me "segmentation fault" i can only decompile using 4.2 and 4.3 but not 4.1 and 4.4
heres the log when i finished decompiling
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 14, -F, /data/data/per.pqy.apktool/APKTOOL5829606418907345910.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/ovpnmod_src/res, -M, /sdcard/ovpnmod_src/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: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 14, -F, /data/data/per.pqy.apktool/APKTOOL5829606418907345910.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/ovpnmod_src/res, -M, /sdcard/ovpnmod_src/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: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 14, -F, /data/data/per.pqy.apktool/APKTOOL5829606418907345910.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/ovpnmod_src/res, -M, /sdcard/ovpnmod_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "/data/data/per.pqy.apktool/lix/aapt": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: error=13, Permission denied
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:1023)
... 10 more
but when i recompile without modifying the source gives me an error below
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 14, -F, /data/data/per.pqy.apktool/APKTOOL5829606418907345910.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/ovpnmod_src/res, -M, /sdcard/ovpnmod_src/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: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 14, -F, /data/data/per.pqy.apktool/APKTOOL5829606418907345910.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/ovpnmod_src/res, -M, /sdcard/ovpnmod_src/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: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 14, -F, /data/data/per.pqy.apktool/APKTOOL5829606418907345910.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/ovpnmod_src/res, -M, /sdcard/ovpnmod_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "/data/data/per.pqy.apktool/lix/aapt": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: error=13, Permission denied
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:1023)
... 10 more
why? what happened? i'm not a programmer so i don't know but i used to use this on my desktop and it worked with no problem
and i also know i'm a leacher but can you spare me even atiny bit of clue thanks

Categories

Resources