[Q] Pixel Animated Navigation Bar Porting Issues - Android Q&A, Help & Troubleshooting

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

Related

Compiling APK problem

Code:
C:\Users\David\Desktop\Android Tools\apktool1.5.2>apktool if framework-res.apk
I: Framework installed to: C:\Users\David\apktool\framework\1.apk
C:\Users\David\Desktop\Android Tools\apktool1.5.2>apktool d Home.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\David\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\David\apktool\framework\2.apk
I: Loaded.
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\David\Desktop\Android Tools\apktool1.5.2>apktool b Home Home.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:21:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:29:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout.CuiMainMenuItem'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values-land\styles.xm
l:3: error: Error retrieving parent for item: No resource found that matches the
given name 'Layout.CuiMainMenuItem'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:45:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout.CuiMainMenuItem'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:53:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values-land\styles.xm
l:24: error: Error retrieving parent for item: No resource found that matches th
e given name 'Layout'.
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\David\AppData\Local\Temp
\APKTOOL8829101515579145139.tmp, -0, arsc, -I, C:\Users\David\apktool\framework\
1.apk, -I, C:\Users\David\apktool\framework\2.apk, -S, C:\Users\David\Desktop\An
droid Tools\apktool1.5.2\Home\res, -M, C:\Users\David\Desktop\Android Tools\apkt
ool1.5.2\Home\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, --target-sdk-version, 16, -F, C:
\Users\David\AppData\Local\Temp\APKTOOL8829101515579145139.tmp, -0, arsc, -I, C:
\Users\David\apktool\framework\1.apk, -I, C:\Users\David\apktool\framework\2.apk
, -S, C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res, -M, C:\Users\D
avid\Desktop\Android Tools\apktool1.5.2\Home\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, --target-sdk-version, 16, -F, C:\Users\David\AppData\Local\Temp\A
PKTOOL8829101515579145139.tmp, -0, arsc, -I, C:\Users\David\apktool\framework\1.
apk, -I, C:\Users\David\apktool\framework\2.apk, -S, C:\Users\David\Desktop\Andr
oid Tools\apktool1.5.2\Home\res, -M, C:\Users\David\Desktop\Android Tools\apktoo
l1.5.2\Home\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Here is the log. as you can see the framework is installed but I still get some problem in the values

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?

[Q] Error Recompiling CM11's SystemUI.apk

Hey guys, as I don't have proper access to a PC I relay on my phone for everything & I have Micromax Canvas A1 running official CM11 nightly if you wanted to know. Today I wanted to add this mod in my phone. So, first I decompiled my systemui using android apktool v4.4 & I got some error at first, but I fixed it by using use framework option present in apktool & I edited all xmls accordingly to the guide. Later when I tried to recompile I'm getting this error:
Code:
/sdcard/SystemUI_src/res/values/styles.xml:18: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
/sdcard/SystemUI_src/res/values/styles.xml:19: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
/sdcard/SystemUI_src/res/values/styles.xml:24: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
/sdcard/SystemUI_src/res/values/styles.xml:44: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
/sdcard/SystemUI_src/res/values/styles.xml:126: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar.Ticker'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.4-a26cd1cc02, -F, /data/data/per.pqy.apktool/APKTOOL7997562150152865281.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/SystemUI_src/res, -M, /sdcard/SystemUI_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.4-a26cd1cc02, -F, /data/data/per.pqy.apktool/APKTOOL7997562150152865281.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/SystemUI_src/res, -M, /sdcard/SystemUI_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.4-a26cd1cc02, -F, /data/data/per.pqy.apktool/APKTOOL7997562150152865281.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/SystemUI_src/res, -M, /sdcard/SystemUI_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:475)
... 6 more
I: Using Apktool 2.0.0-Beta7 on SystemUI_src
I: Smaling...
I: Building resources...
Somebody please help me with this...
Did you install all the frameworks? It looks like you also need to install the systemui apk. Just a heads up. You are gonna get issues with only trying to do this on your phone.
zelendel said:
Did you install all the frameworks? It looks like you also need to install the systemui apk. Just a heads up. You are gonna get issues with only trying to do this on your phone.
Click to expand...
Click to collapse
There's no other frameworks as it's CM & I even tried installing systemui as framework, but still no luck And as I said before I don't have PC...
ghpranav said:
There's no other frameworks as it's CM & I even tried installing systemui as framework, but still no luck And as I said before I don't have PC...
Click to expand...
Click to collapse
Ok well then I am not sure what to tell you at this point. When I said other base frameworks I meant that both the framework res and system ui are base os frameworks.
What I would do is install both of those and then redecompile, make your edits and then recompile and see what happens.
You are doing some mistakes in styles.xml file. Check these lines in styles.xml. There are mistakes.
Line no.-
18
19
24
44
126
ANKIT RAWAT said:
You are doing some mistakes in styles.xml file. Check these lines in styles.xml. There are mistakes.
Line no.-
18
19
24
44
126
Click to expand...
Click to collapse
Thanks dude, will check it out, but I haven't edited anything in it much, I just added 2-3 lines at the end, everything else is kept constant...
Adding unusual lines of code can unbalace the flow of code, so it give error, dont change sequence of codes. Just do a simple edit and if you want to add extra line of codes then add at last of the XML file.
Thanks
ANKIT RAWAT said:
Adding unusual lines of code can unbalace the flow of code, so it give error, dont change sequence of codes. Just do a simple edit and if you want to add extra line of codes then add at last of the XML file.
Thanks
Click to expand...
Click to collapse
I just checked out those lines, & the common thing in those lines was:
Code:
parent="@android:style/TextAppearance.StatusBar"
And I just now realized that I haven't not at all edited anything in styles.xml...
zelendel said:
What I would do is install both of those and then redecompile, make your edits and then recompile and see what happens.
Click to expand...
Click to collapse
Hey bro, I did same as you told, installed both frameworks ( framework-res & systemui), redecompiled, made changes & when I tried to recompile I'm getting save error again, but there's little difference:
/sdcard/SystemUI_src/res/values/styles.xml:18: ]error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
/sdcard/SystemUI_src/res/values/styles.xml:19: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
/sdcard/SystemUI_src/res/values/styles.xml:24: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
/sdcard/SystemUI_src/res/values/styles.xml:44: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
/sdcard/SystemUI_src/res/values/styles.xml:126: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar.Ticker'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.4-a26cd1cc02, -F, /data/data/per.pqy.apktool/APKTOOL2592047250762465412.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/SystemUI_src/res, -M, /sdcard/SystemUI_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.4-a26cd1cc02, -F, /data/data/per.pqy.apktool/APKTOOL2592047250762465412.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/SystemUI_src/res, -M, /sdcard/SystemUI_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.4-a26cd1cc02, -F, /data/data/per.pqy.apktool/APKTOOL2592047250762465412.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/SystemUI_src/res, -M, /sdcard/SystemUI_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:475)
... 6 more
I: Using Apktool 2.0.0-Beta7 on SystemUI_src
I: Smaling...
I: Building resources...
Click to expand...
Click to collapse

Apktool compiling failed

Hello! I'm trying to recompile the DocumentsUI(from the ICE ROM Sense 8.0 Android 7.0, HTC One M9) .apk after I've changed it's icons with the ones from the Pixel's .apk, but it it fails. Can someone please help me?
Error
Code:
:\Users\Not Your Business\Apktool>java -jar apktool.jar b DocumentsUI
I: Using Apktool 2.2.2
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\layout\dialog_delete_confirmation.xml:2: error: Error: Resource is not public. (at 'textColor' with value '@android:color/background_floating_material_dark').
W:
W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\drawable\progress_indeterminate_horizontal_material_trimmed.xml:4: error: Error: Resource is not public. (at 'animation' with value '@android:anim/progress_indeterminate_horizontal_rect1').
W:
Exception in thread "main" W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\drawable\progress_indeterminate_horizontal_material_trimmed.xml:5: error: Error: Resource is not public. (at 'animation' with value '@android:anim/popup_exit_material').
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Not Your Business~1\AppData\Local\Temp\brut_util_Jar_4876271847518240057.tmp, p, --forced-package-id, 127, --min-sdk-version, 24, --target-sdk-version, 24, --version-code, 24, --version-name, 7.0, --no-version-vectors, -F, C:\Users\Not Your Business~1\AppData\Local\Temp\APKTOOL1667677468902537463.tmp, -0, arsc, -0, arsc, -I, C:\Users\Not Your Business\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Not Your Business\Apktool\DocumentsUI\res, -M, C:\Users\Not Your Business\Apktool\DocumentsUI\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\Not Your Business~1\AppData\Local\Temp\brut_util_Jar_4876271847518240057.tmp, p, --forced-package-id, 127, --min-sdk-version, 24, --target-sdk-version, 24, --version-code, 24, --version-name, 7.0, --no-version-vectors, -F, C:\Users\Not Your Business~1\AppData\Local\Temp\APKTOOL1667677468902537463.tmp, -0, arsc, -0, arsc, -I, C:\Users\Not Your Business\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Not Your Business\Apktool\DocumentsUI\res, -M, C:\Users\Not Your Business\Apktool\DocumentsUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:440)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:463)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Not Your Business~1\AppData\Local\Temp\brut_util_Jar_4876271847518240057.tmp, p, --forced-package-id, 127, --min-sdk-version, 24, --target-sdk-version, 24, --version-code, 24, --version-name, 7.0, --no-version-vectors, -F, C:\Users\Not Your Business~1\AppData\Local\Temp\APKTOOL1667677468902537463.tmp, -0, arsc, -0, arsc, -I, C:\Users\ZNot Your Business\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Not Your Business\Apktool\DocumentsUI\res, -M, C:\Users\Not Your Business \Apktool\DocumentsUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:434)
... 6 more
W:
W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\color\item_root_icon.xml:4: error: Error: Resource is not public. (at 'color' with value '@android:color/primary_text_disable_only_material_light').
W:
W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\color\item_root_primary_text.xml:6: error: Error: Resource is not public. (at 'color' with value '@android:color/background_floating_material_dark').
W:
W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\color\item_root_primary_text.xml:6: error: Error: Resource is not public. (at 'alpha' with value '@android:dimen/hint_pressed_alpha_material_dark').
W:
W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\color\item_root_primary_text.xml:7: error: Error: Resource is not public. (at 'color' with value '@android:color/background_floating_material_dark').
W:
W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\color\root_activated.xml:5: error: Error: Resource is not public. (at 'color' with value '@android:color/primary_text_disable_only_material_light').

Change Application Language ApkTool

Hi!
I am trying to extract the apk file with apktool and change the application language
but after I decompile the apk file, it fails to recompile
it gives the following error
If you could help with this situation, I would greatly appreciate it
Log For : UE.apk
Log Type : Recompiling
Log Recorded At : Pzt -28.05.2018- 19:53:42,51
Log Recorded By : Advanced ApkTool v4.2.0 By BDFreak
------------------------------------------------------
W: A/ ( 9496): First type is not attr!
W:
W: This application has requested the Runtime to terminate it in an unusual way.
W: Please contact the application's support team for more information.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 3): [C:\Users\KAPTAN\AppData\Local\Temp\brut_util_Jar_2549820411354606683.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 27, --version-code, 918020, --version-name, 0.20.7.918-arm64-v8a, -F, C:\Users\KAPTAN\AppData\Local\Temp\APKTOOL8002425952792824732.tmp, -0, arsc, -0, arsc, -I, C:\Users\KAPTAN\Desktop\apktool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\res, -M, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
at brut.androlib.Androlib.buildResources(Androlib.java:412)
at brut.androlib.Androlib.build(Androlib.java:311)
at brut.androlib.Androlib.build(Androlib.java:264)
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 = 3): [C:\Users\KAPTAN\AppData\Local\Temp\brut_util_Jar_2549820411354606683.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 27, --version-code, 918020, --version-name, 0.20.7.918-arm64-v8a, -F, C:\Users\KAPTAN\AppData\Local\Temp\APKTOOL8002425952792824732.tmp, -0, arsc, -0, arsc, -I, C:\Users\KAPTAN\Desktop\apktool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\res, -M, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:439)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:464)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 3): [C:\Users\KAPTAN\AppData\Local\Temp\brut_util_Jar_2549820411354606683.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 27, --version-code, 918020, --version-name, 0.20.7.918-arm64-v8a, -F, C:\Users\KAPTAN\AppData\Local\Temp\APKTOOL8002425952792824732.tmp, -0, arsc, -0, arsc, -I, C:\Users\KAPTAN\Desktop\apktool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\res, -M, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:433)
... 6 more
Click to expand...
Click to collapse
------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------
W: Cant find 9patch chunk in file: "drawable-hdpi-v4/scrollbar_dark.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi-v4/scrollbar_dark.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-xxhdpi-v4/scrollbar_dark.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-xhdpi-v4/scrollbar_dark.9.png". Renaming it to *.png.
Exception in thread "main" java.lang.NullPointerException
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:58)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:516)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:267)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:132)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:108)
at brut.apktool.Main.cmdDecode(Main.java:166)
at brut.apktool.Main.main(Main.java:81)
Click to expand...
Click to collapse
is there no information on this issue?

Categories

Resources