[Android Q&A, Help & Troubleshooting] Xaif:
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:

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