Tried Editing some png in google music as its color blends in the background and when compiling I got this error How do you solve it?
the given name: attr 'android:textUnderlineColor'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:631: error: Error retrieving parent for item: No
resource found that matches the given name 'Theme'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:701: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:741: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:789: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:832: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:848: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base.DropDownItem'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:874: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:881: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Light.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:900: error: Error retrieving parent for item: No
resource found that matches the given name 'TextAppearance.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:933: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values-v14\styles.xml:52: error: Error retrieving parent for item:
No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:1127: error: Error retrieving parent for item: No
resource found that matches the given name 'Theme.AppCompat.Base'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec comma
nd: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 19, -F, C:\Users\Ramos\AppData\Local\Temp\APKTOOL7243578223399939917.tmp, -0, arsc
, -I, C:\Users\Ramos\apktool\framework\1.apk, -S, C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res, -M, C:\Users\Ram
os\Desktop\googlemusic\other\..\projects\GoogleMusic.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, 19, -F, C:\Users\Ramos\AppData\Local\Temp\APKTOOL7243578223399939917.tmp, -0, arsc, -I, C:\Users\Ramos\apktool\framework\1.apk, -S,
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res, -M, C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMu
sic.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, 9, --target-sdk-version, 19, -F, C:\Users\Ramos\A
ppData\Local\Temp\APKTOOL7243578223399939917.tmp, -0, arsc, -I, C:\Users\Ramos\apktool\framework\1.apk, -S, C:\Users\Ramos\Desktop\googlemus
ic\other\..\projects\GoogleMusic.apk\res, -M, C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
"An Error Occured, Please Check The Log (option 21)"
Press any key to continue . . .
Click to expand...
Click to collapse
ponnex said:
Tried Editing some png in google music as its color blends in the background and when compiling I got this error How do you solve it?
Click to expand...
Click to collapse
Need to fix your styles xml. You are missing parents for the the themes listed in there.
[email protected]'$ [email protected]@XY
Thebear j koss said:
Need to fix your styles xml. You are missing parents for the the themes listed in there.
[email protected]'$ [email protected]@XY
Click to expand...
Click to collapse
On the first error I got which is this line:
C:\Users\Ramos\Desktop\googlemusic\other\..\projec ts\GoogleMusic.apk\res\values\styles.xml:631: error: Error retrieving parent for item: No
resource found that matches the given name 'Theme'.
Click to expand...
Click to collapse
this is the corresponding line on the style.xml
<style name="Theme.MediaRouter">
<item name="mediaRouteButtonStyle">@style/Widget.MediaRouter.MediaRouteButton</item>
<item name="mediaRouteOffDrawable">@drawable/mr_ic_media_route_off_holo_dark</item>
<item name="mediaRouteConnectingDrawable">@drawable/mr_ic_media_route_connecting_holo_dark</item>
<item name="mediaRouteOnDrawable">@drawable/mr_ic_media_route_on_holo_dark</item>
</style>
Click to expand...
Click to collapse
I just dont get it how does "Theme.MediaRouter" become just "Theme" on the error? and what parent should it be? and on the following errors, it still the same instead of the full style name for example "Theme.MediaRouter" in the error it cuts into just "Theme". Do I have to create the "Theme" style in there or direct the parent to the theme style in framework-res? hehe
Related
Hi.
I need help.. When I try recompile SystemUI.apk I get this error:
Code:
C:\android\apk tool>apktool b test SystemUI1.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\android\apk tool\test\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\android\apk tool\test\res/drawable-sw720dp-hdpi
invalid resource directory name: C:\android\apk tool\test\res/layout-sw600dp
invalid resource directory name: C:\android\apk tool\test\res/values-sw600dp
invalid resource directory name: C:\android\apk tool\test\res/values-sw600dp-port
invalid resource directory name: C:\android\apk tool\test\res/values-sw720dp
invalid resource directory name: C:\android\apk tool\test\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Martin\AppData\Local\Temp\APKTOOL377918059572126641.tmp, -I, C:\Users\Martin\apktool\framework\1.apk, -S, C:\android\apk tool\test\res, -M, C:\androi
d\apk tool\test\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Martin\AppData\Local\Temp\APKTOOL377918059572126641.tmp, -I, C:\Users\Martin\apktool\framework\1.apk, -S, C:\android\apk tool\test\res, -M, C:\android\apk tool\test\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Thanks for advices
At a guess, it looks like you haven't installed any resource files. And you might be using an old version of apktool.
Try Tickle My Android..
Sent from my SK17i using xda premium
Ticklefish said:
At a guess, it looks like you haven't installed any resource files. And you might be using an old version of apktool.
Try Tickle My Android..
Sent from my SK17i using xda premium
Click to expand...
Click to collapse
Thanks. And how i install resource files?
Sent from my U8800 using xda app-developers app
You need update the "aapt". You can download lastest aapt at the attachments. Replace this file with your aapt.exe file
forumber2 said:
You need update the "aapt". You can download lastest aapt at the attachments. Replace this file with your aapt.exe file
Click to expand...
Click to collapse
Thanks. But I got new error :crying:
Code:
C:\android\apktool>apktool b test new.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
res\drawable-hdpi\status_bar_close_on.png:0: error: Resource entry status_bar_close_on is already defined.
res\drawable-hdpi\status_bar_close_on.9.png:0: Originally defined here.
res\drawable-hdpi\status_bar_hr.png:0: error: Resource entry status_bar_hr is already defined.
res\drawable-hdpi\status_bar_hr.9.png:0: Originally defined here.
C:\android\apktool\test\res\layout\status_bar_expanded.xml:12: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/notification_header_bg2').
C:\android\apktool\test\res\layout\status_bar_expanded.xml:13: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/notification_header_bg2').
C:\android\apktool\test\res\layout\status_bar_expanded.xml:13: error: Error: No resource found that matches the given name (at 'minHeight' with value '@dimen/notification_panel_widget_height').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Martin\AppData\Local\Temp\APKTOOL5457996143886151145.tmp, -I, C:\Users\Martin\apktool\framework\1.apk, -S, C:\android\apktool\test\res, -M, C:\androi
d\apktool\test\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Martin\AppData\Local\Temp\APKTOOL5457996143886151145.tmp, -I, C:\Users\Martin\apktool\framework\1.apk, -S, C:\android\apktool\test\res, -M, C:\android\apktool\test\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
My money is on old version .
Sent from my HTC One X using xda premium
S.a.M.e.R_d said:
My money is on old version .
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
My money is on somebody taking a shortcut when doing some modding on this apk.
It's complaining that there are duplicate png's in the apk. Two of these will need to be deleted before you try and recompile. Which two depends on the images themselves. Have a look at them and delete the two you don't want.
There's also an error that says you're missing an image file called notification_header_bg and you're missing a dimension. Sort all this out and you should be able to recompile without any problems.
Tried Editing some png in google music as its color blends in the background and when compiling I got this error How do you solve it?
the given name: attr 'android:textUnderlineColor'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:631: error: Error retrieving parent for item: No
resource found that matches the given name 'Theme'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:701: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:741: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:789: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:832: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:848: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base.DropDownItem'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:874: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:881: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Light.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:900: error: Error retrieving parent for item: No
resource found that matches the given name 'TextAppearance.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:933: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values-v14\styles.xml:52: error: Error retrieving parent for item:
No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:1127: error: Error retrieving parent for item: No
resource found that matches the given name 'Theme.AppCompat.Base'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec comma
nd: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 19, -F, C:\Users\Ramos\AppData\Local\Temp\APKTOOL7243578223399939917.tmp, -0, arsc
, -I, C:\Users\Ramos\apktool\framework\1.apk, -S, C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res, -M, C:\Users\Ram
os\Desktop\googlemusic\other\..\projects\GoogleMusic.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, 19, -F, C:\Users\Ramos\AppData\Local\Temp\APKTOOL7243578223399939917.tmp, -0, arsc, -I, C:\Users\Ramos\apktool\framework\1.apk, -S,
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res, -M, C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMu
sic.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, 9, --target-sdk-version, 19, -F, C:\Users\Ramos\A
ppData\Local\Temp\APKTOOL7243578223399939917.tmp, -0, arsc, -I, C:\Users\Ramos\apktool\framework\1.apk, -S, C:\Users\Ramos\Desktop\googlemus
ic\other\..\projects\GoogleMusic.apk\res, -M, C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
"An Error Occured, Please Check The Log (option 21)"
Press any key to continue . . .
Click to expand...
Click to collapse
Tried Editing some png in google music as its color blends in the background and when compiling I got this error How do you solve it?
the given name: attr 'android:textUnderlineColor'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:631: error: Error retrieving parent for item: No
resource found that matches the given name 'Theme'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:701: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:741: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:789: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:832: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:848: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base.DropDownItem'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:874: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:881: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Light.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:900: error: Error retrieving parent for item: No
resource found that matches the given name 'TextAppearance.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:933: error: Error retrieving parent for item: No
resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values-v14\styles.xml:52: error: Error retrieving parent for item:
No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res\values\styles.xml:1127: error: Error retrieving parent for item: No
resource found that matches the given name 'Theme.AppCompat.Base'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec comma
nd: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 19, -F, C:\Users\Ramos\AppData\Local\Temp\APKTOOL7243578223399939917.tmp, -0, arsc
, -I, C:\Users\Ramos\apktool\framework\1.apk, -S, C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res, -M, C:\Users\Ram
os\Desktop\googlemusic\other\..\projects\GoogleMusic.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, 19, -F, C:\Users\Ramos\AppData\Local\Temp\APKTOOL7243578223399939917.tmp, -0, arsc, -I, C:\Users\Ramos\apktool\framework\1.apk, -S,
C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\res, -M, C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMu
sic.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, 9, --target-sdk-version, 19, -F, C:\Users\Ramos\A
ppData\Local\Temp\APKTOOL7243578223399939917.tmp, -0, arsc, -I, C:\Users\Ramos\apktool\framework\1.apk, -S, C:\Users\Ramos\Desktop\googlemus
ic\other\..\projects\GoogleMusic.apk\res, -M, C:\Users\Ramos\Desktop\googlemusic\other\..\projects\GoogleMusic.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
"An Error Occured, Please Check The Log (option 21)"
Press any key to continue . . .
Click to expand...
Click to collapse
ponnex said:
Tried Editing some png in google music as its color blends in the background and when compiling I got this error How do you solve it?
Click to expand...
Click to collapse
Because Google Music is an app by Google, it has a different, more closed-source app signature on it. When attempting to edit even just the graphics, it will not compile, as you saw, because of this extra signature.
You *could* resign it with your own signature, but it would make Google Music not properly hook up with your Google account, as well as cause a few other issues.
Sorry.
When i port the theme and try to compile the theme i get these
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:4: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/android').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:5: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/com_android_settings').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:6: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/com_android_systemui').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:7: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/com_android_vending').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_ic_notify_button_bg.xml:18: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_list_selector_pressed_holo_dark').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_ic_notify_button_bg.xml:19: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_notification_expand_background').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_notification_row_legacy_bg.xml:19: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_notification_header_background').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_notification_row_legacy_bg.xml:20: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_notification_header_bg').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_qs_tile_background.xml:18: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_qs_background').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_qs_tile_background.xml:19: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_qs_first_background').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\Yahia\AppData\Local\Temp\APKTOOL4311929671331448420.tmp, -0, arsc, -I, C:\Users\Yahia\apktool\framework\1.apk, -S, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res, -M, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.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, 15, -F, C:\Users\Yahia\AppData\Local\Temp\APKTOOL4311929671331448420.tmp, -0, arsc, -I, C:\Users\Yahia\apktool\framework\1.apk, -S, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res, -M, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.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, 15, -F, C:\Users\Yahia\AppData\Local\Temp\APKTOOL4311929671331448420.tmp, -0, arsc, -I, C:\Users\Yahia\apktool\framework\1.apk, -S, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res, -M, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
I was porting Pixel navigation bar and I have an issue and that is when I am compiling the systemUI.apk and it is throwing me an error I have followed all the steps from this tutorial
Error:
Code:
C:\Users\Xaif\Desktop\LineagePort>java -jar apktool.jar b SystemUI -c
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: Building resources...
W: C:\Users\Xaif\Desktop\LineagePort\SystemUI\res\values\styles.xml:2139: error:
Error retrieving parent for item: No resource found that matches the given name
'@android:style/TextAppearance.StatusBar'.
W:
W: C:\Users\Xaif\Desktop\LineagePort\SystemUI\res\values\styles.xml:2140: error:
Error retrieving parent for item: No resource found that matches the given name
'@android:style/TextAppearance.StatusBar'.
W:
W: C:\Users\Xaif\Desktop\LineagePort\SystemUI\res\values\styles.xml:2145: error:
Error retrieving parent for item: No resource found that matches the given name
'@android:style/TextAppearance.StatusBar'.
W:
W: C:\Users\Xaif\Desktop\LineagePort\SystemUI\res\values\styles.xml:2155: error:
Error retrieving parent for item: No resource found that matches the given name
'@android:style/TextAppearance.StatusBar'.
W:
W: C:\Users\Xaif\Desktop\LineagePort\SystemUI\res\values\styles.xml:2258: error:
Error retrieving parent for item: No resource found that matches the given name
'@android:style/Theme.DeviceDefault.Settings.Dark'.
W:
W: C:\Users\Xaif\Desktop\LineagePort\SystemUI\res\values\styles.xml:2365: error:
Error retrieving parent for item: No resource found that matches the given name
'@android:style/Theme.DeviceDefault.Settings.Dark'.
Exception in thread "main" W:
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.Br
utException: could not exec (exit code = 1): [C:\Users\Xaif\AppData\Local\Temp\b
rut_util_Jar_4007376053499372905.tmp, p, --forced-package-id, 127, --min-sdk-ver
sion, 25, --target-sdk-version, 25, --version-code, 25, --version-name, 7.1.1, -
-no-version-vectors, -F, C:\Users\Xaif\AppData\Local\Temp\APKTOOL889014957634349
2479.tmp, -0, arsc, -0, arsc, -I, C:\Users\Xaif\AppData\Local\apktool\framework\
1.apk, -S, C:\Users\Xaif\Desktop\LineagePort\SystemUI\res, -M, C:\Users\Xaif\Des
ktop\LineagePort\SystemUI\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 (exit code = 1): [C:\Users\Xaif\AppData\Local\Temp\brut_util_Jar_400737605
3499372905.tmp, p, --forced-package-id, 127, --min-sdk-version, 25, --target-sdk
-version, 25, --version-code, 25, --version-name, 7.1.1, --no-version-vectors, -
F, C:\Users\Xaif\AppData\Local\Temp\APKTOOL8890149576343492479.tmp, -0, arsc, -0
, arsc, -I, C:\Users\Xaif\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Xa
if\Desktop\LineagePort\SystemUI\res, -M, C:\Users\Xaif\Desktop\LineagePort\Syste
mUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:440)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:463)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\
Xaif\AppData\Local\Temp\brut_util_Jar_4007376053499372905.tmp, p, --forced-packa
ge-id, 127, --min-sdk-version, 25, --target-sdk-version, 25, --version-code, 25,
--version-name, 7.1.1, --no-version-vectors, -F, C:\Users\Xaif\AppData\Local\Te
mp\APKTOOL8890149576343492479.tmp, -0, arsc, -0, arsc, -I, C:\Users\Xaif\AppData
\Local\apktool\framework\1.apk, -S, C:\Users\Xaif\Desktop\LineagePort\SystemUI\r
es, -M, C:\Users\Xaif\Desktop\LineagePort\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:434)
... 6 more