[Q] Error in Apktool. - 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.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?

Related

I get error

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

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

[Q] help me , i can not recompile miuisystemui.apk

i has some problem when i recompiling miuisystemui.apk , please help me how to fix ( my english is not good )
invalid resource directory name: D:\apktool\miuisystemui\res/values-fr-largeui
invalid resource directory name: D:\apktool\miuisystemui\res/values-largeui
invalid resource directory name: D:\apktool\miuisystemui\res/values-mediumui
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\AS\AppData\Local\Temp\AP
KTOOL574966566911823709.tmp, -I, C:\Users\AS\apktool\framework\1.apk, -I, C:\Use
rs\AS\apktool\framework\6.apk, -S, D:\apktool\miuisystemui\res, -M, D:\apktool\m
iuisystemui\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
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\AS\AppData\Local\Temp\APKTOOL574966566911823709.tmp, -I, C:\Users\AS\apkt
ool\framework\1.apk, -I, C:\Users\AS\apktool\framework\6.apk, -S, D:\apktool\miu
isystemui\res, -M, D:\apktool\miuisystemui\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 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\AS\AppData\Local\Temp\APKT
OOL574966566911823709.tmp, -I, C:\Users\AS\apktool\framework\1.apk, -I, C:\Users
\AS\apktool\framework\6.apk, -S, D:\apktool\miuisystemui\res, -M, D:\apktool\miu
isystemui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
please ,help me!!!

Categories

Resources