[HELP] Error Compiling Google Music - Android Q&A, Help & Troubleshooting

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

Related

[HELP] Error Compiling Google Music

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.

[HELP] Error Compiling Google Music

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

Need help with theming.

Hi there,
I recently decided to start doing some theming on my Lollipop ROM, cataclysm for nexus 5. Now, I tried to follow this guide http://forum.xda-developers.com/showthread.php?t=1814441 to recompile and decompile and I used this guide http://forum.xda-developers.com/android/themes/guide-t2978121 to try and theme some colors in systemui.apk. I started out with just the primary color of the notification drawer, just to test it.
But, when I try to recompile the apk, I get some errors. I have no idea what to do with them.
C:\Users\Eldin\Documents\apktool>apktool b SystemUI test.apk
I: Using Apktool 2.0.0-RC3 on SystemUI
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:35: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:36: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:41: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:51: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:151: error: Erro
r retrieving parent for item: No resource found that matches the given name '@an
droid:style/TextAppearance.StatusBar.Ticker'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Eldin\
AppData\Local\Temp\brut_util_Jar_2232414949666097057.tmp, p, --forced-package-id
, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --ve
rsion-name, 5.0.2-1649326, -F, C:\Users\Eldin\AppData\Local\Temp\APKTOOL53377920
12544222906.tmp, -0, arsc, -I, C:\Users\Eldin\apktool\framework\1.apk, -S, C:\Us
ers\Eldin\Documents\apktool\SystemUI\res, -M, C:\Users\Eldin\Documents\apktool\S
ystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)
at brut.androlib.Androlib.buildResources(Androlib.java:374)
at brut.androlib.Androlib.build(Androlib.java:277)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Eldin\AppData\Local\Temp\brut_util_Jar_2232414949666097
057.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-versio
n, 21, --version-code, 21, --version-name, 5.0.2-1649326, -F, C:\Users\Eldin\App
Data\Local\Temp\APKTOOL5337792012544222906.tmp, -0, arsc, -I, C:\Users\Eldin\apk
tool\framework\1.apk, -S, C:\Users\Eldin\Documents\apktool\SystemUI\res, -M, C:\
Users\Eldin\Documents\apktool\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:488)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Eldin\Ap
pData\Local\Temp\brut_util_Jar_2232414949666097057.tmp, p, --forced-package-id,
127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --vers
ion-name, 5.0.2-1649326, -F, C:\Users\Eldin\AppData\Local\Temp\APKTOOL5337792012
544222906.tmp, -0, arsc, -I, C:\Users\Eldin\apktool\framework\1.apk, -S, C:\User
s\Eldin\Documents\apktool\SystemUI\res, -M, C:\Users\Eldin\Documents\apktool\Sys
temUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:482)
... 6 more
C:\Users\Eldin\Documents\apktool>
All I changed were 2 colors in res/values/colors.xml.
Can point me in the right direction?

Port cm theme to xtheme error

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

[Q] Pixel Animated Navigation Bar Porting Issues

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

Categories

Resources