{Q} Recompiling SystemUi error - Galaxy Note 3 Developer Discussion [Developers Onl

Hello guys ,
I get this error when I try to recompile SystemUi
Log For : SystemUI.apk
Log Type : Recompiling
Log Recorded At : Mon 04-01-2016 20:13:24.99
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
warning: string 'data_usage_disable_mobile_vzw_3' has no default translation.
warning: string 'flight_mode_disabled_on_demo_devices' has no default translation.
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\battery_low_heads_up_noti.xml:2: error: No resource identifier found for attribute 'layout_maxHeight' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\battery_low_heads_up_noti.xml:2: error: No resource identifier found for attribute 'layout_minHeight' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'handleDrawable' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'outerRingDrawable' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'pointDrawable' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'outerRadius' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'glowRadius' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'vibrationDuration' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'snapMargin' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'feedbackCount' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'firstItemOffset' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'magneticTargets' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'allowScaling' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\notification_public_default.xml:2: error: No resource identifier found for attribute 'layout_maxHeight' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\notification_public_default.xml:2: error: No resource identifier found for attribute 'layout_minHeight' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\DRAHMA~1\AppData\Local\Temp\brut_util_Jar_7407859493212729898.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-N9200ZCU2AOL2, -F, C:\Users\DRAHMA~1\AppData\Local\Temp\APKTOOL1809012509551128119.tmp, -0, arsc, -I, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:442)
at brut.androlib.Androlib.buildResources(Androlib.java:379)
at brut.androlib.Androlib.build(Androlib.java:282)
at brut.androlib.Androlib.build(Androlib.java:255)
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\DRAHMA~1\AppData\Local\Temp\brut_util_Jar_7407859493212729898.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-N9200ZCU2AOL2, -F, C:\Users\DRAHMA~1\AppData\Local\Temp\APKTOOL1809012509551128119.tmp, -0, arsc, -I, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:506)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:428)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\DRAHMA~1\AppData\Local\Temp\brut_util_Jar_7407859493212729898.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-N9200ZCU2AOL2, -F, C:\Users\DRAHMA~1\AppData\Local\Temp\APKTOOL1809012509551128119.tmp, -0, arsc, -I, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:500)
... 6 more
------------------------------------------------------
Click to expand...
Click to collapse
* I have the 2 frameworks installed
* This isn't the stock ( DarkAu Note 5 rom)
I hope someone can help me

7odaahmad said:
Hello guys ,
I get this error when I try to recompile SystemUi
* I have the 2 frameworks installed
* This isn't the stock ( DarkAu Note 5 rom)
I hope someone can help me
Click to expand...
Click to collapse
try this:
go to res\layout\battery_low_heads_up_noti.xml:2, and find layout_MaxHeight. Replace the negative number with "unbounded"
Do the same for res\layout-v22\battery_low_heads_up_noti.xml:2
Also, read the LOG file carefully and try to identify what the other errors mean. This isn't that hard. Hope this helps, Good Luck

Azar_98 said:
try this:
go to res\layout\battery_low_heads_up_noti.xml:2, and find layout_MaxHeight. Replace the negative number with "unbounded"
Do the same for res\layout-v22\battery_low_heads_up_noti.xml:2
Also, read the LOG file carefully and try to identify what the other errors mean. This isn't that hard. Hope this helps, Good Luck
Click to expand...
Click to collapse
Thanks for your answer man
but I found another solution that worked for me
by editing the "apktool.yml" file and delete the QMG files data from it and it worked perfectly
Thank U again for your answer

7odaahmad said:
Thanks for your answer man
but I found another solution that worked for me
by editing the "apktool.yml" file and delete the QMG files data from it and it worked perfectly
Thank U again for your answer
Click to expand...
Click to collapse
No problem mate, glad you solved it

Related

[Q] Using apktools on LatinImeGoogle.apk from ICSSGS' latest port

Hi,
I'm trying to add a dictionary to LatinImeGoogle.apk from ICSSGS' latest port (RC4.2 for I9000), and I manage to disassemble the apk, but not to reassemble.
This happens even if I didn't change anything inside.
Also, I get errors on both Windows and Linux.
Please help!
Thanx
Windows error:
c:\Windows>apktool b -f c:\da_apks\LatinImeGoogle
I: Smaling...
I: Building resources...
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/layout-sw768dp
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/values-sw600dp
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/values-sw600dp-la
nd
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/values-sw768dp
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/values-sw768dp-la
nd
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/xml-sw600dp
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/xml-sw600dp-land
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/xml-sw768dp
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/xml-sw768dp-land
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Erez\AppData\Local\Temp\AP
KTOOL5255303126555889179.tmp, -I, C:\Users\Erez\apktool\framework\1.apk, -S, c:\
da_apks\LatinImeGoogle\res, -M, c:\da_apks\LatinImeGoogle\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Erez\AppData\Local\Temp\APKTOOL5255303126555889179.tmp, -I, C:\Users\Erez\a
pktool\framework\1.apk, -S, c:\da_apks\LatinImeGoogle\res, -M, c:\da_apks\LatinI
meGoogle\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
And the Linux (Ubuntu) error:
[email protected]:~/Desktop$ sudo apktool b ./extraction
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL6670999592100072401.tmp, -I, /root/apktool/framework/1.apk, -S, /home/e/Desktop/./extraction/res, -M, /home/e/Desktop/./extraction/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, /tmp/APKTOOL6670999592100072401.tmp, -I, /root/apktool/framework/1.apk, -S, /home/e/Desktop/./extraction/res, -M, /home/e/Desktop/./extraction/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 10 more
Had the same issue editing ics .apk
Fixed only by using perkas apkmanager in his stash.
Sent from my SGH-T959 using XDA
hmm.. Thanks, but I have no idea what that means
EDIT: I downloaded the tool, and the problem persists. Do I need to add anything in the command line or something?

[Q] Can anyone recompile this for me please?

So I played with my phones framework-res.apk I succesfully decompiled it, made some minor changes, then I tried to recompile it, but everytime i tried to, autoapktool crashed and i got an error message... So my question is: can anyone recompile this APK for me? The folder of the decompiled framework-res.apk is inside the rar. Anyway thanks, ChongWiz.
Milyen hibaüzenet? Nem is fog menni a compile amíg hibás kódot tartalmaz a program.
-----
English: What error message? The compile won't work until the program has a bad programcode.
[*] framework-res folder
recompiling framework-res.apk...
W: Could not find sources
I: Building resources...
invalid resource directory name: C:\Users\Csongor\Desktop\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\res/animator
invalid resource directory name: C:\Users\Csongor\Desktop\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\res/interpolator
invalid resource directory name: C:\Users\Csongor\Desktop\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\res/mipmap-320dpi
invalid resource directory name: C:\Users\Csongor\Desktop\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\res/mipmap-hdpi
invalid resource directory name: C:\Users\Csongor\Desktop\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\res/mipmap-ldpi
invalid resource directory name: C:\Users\Csongor\Desktop\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\res/mipmap-mdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Csongor\AppData\Local\Temp\APKTOOL4873594604639032332.tmp, -x, -S, C:\Users\Csongor\Desktop\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\res, -M, C:\Users\Csongor\Desktop\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Csongor\AppData\Local\Temp\APKTOOL4873594604639032332.tmp, -x, -S, C:\Users\Csongor\Desktop\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\res, -M, C:\Users\Csongor\Desktop\AutoAPKTool2.0.3d\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
The system cannot find the drive specified.
Same error if i try to recompile an unmodded apk - maybe there was a problem during the decompiling?
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Ugyanezt adja ki ha módosítatlan apk-ra nyomok recompilet - lehet hogy már a decompilenál problémák voltak?
Are you just trying to change icons or what? If you are just changing Icons or minor things in the framework-res you dont have to decompile it. Just change the name of the file to framework-res.apk.zip. open it with 7zip. Any thing you want to edit and put back in the framework-res you got to extract and then replace. if just replacing the files Drag and drop what you are trying to change to the folder it goes into in the framework-res. Make sure the files are named the same as the ones you are replacing so it overwrites them. Then when you are done editing, close 7zip and take the .zip off the end so its named framework-res.apk. No decompile and recompile.
I made changes in bools.xml,strings.xml and changed some pngs.
Pls help if u can its important

[Q] Errors when recompiling stock .67 deodexed Home.apk

Hey guys, I'm trying to recompile Home.apk but I'm getting multiple errors, anyone know a solution to this?
Cheers
Code:
C:\apktool>apktool b C:\apktool\home
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\home\res\values\styles.xml:25: error: Error retrieving parent for ite
m: No resource found that matches the given name 'Layout'.
C:\apktool\home\res\values\styles.xml:33: error: Error retrieving parent for ite
m: No resource found that matches the given name 'Layout.CuiMainMenuItem'.
C:\apktool\home\res\values-land\styles.xml:3: error: Error retrieving parent for
item: No resource found that matches the given name 'Layout.CuiMainMenuItem'.
C:\apktool\home\res\values\styles.xml:49: error: Error retrieving parent for ite
m: No resource found that matches the given name 'Layout.CuiMainMenuItem'.
C:\apktool\home\res\values\styles.xml:57: error: Error retrieving parent for ite
m: No resource found that matches the given name 'Layout'.
C:\apktool\home\res\values-land\styles.xml:24: error: Error retrieving parent fo
r item: No resource found that matches the given name 'Layout'.
C:\apktool\home\res\values-sw800dp\styles.xml:7: error: Error retrieving parent
for item: No resource found that matches the given name 'Layout.CuiPickerTitle'.
C:\apktool\home\res\values-sw800dp-v17\styles.xml:13: error: Error retrieving pa
rent for item: No resource found that matches the given name 'Layout.CuiPickerTi
tle'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\JEEBO_~1\AppData\Local\T
emp\APKTOOL7086740129581580055.tmp, -0, arsc, -I, E:\apktool\framework\1.apk, -I
, E:\apktool\framework\2.apk, -S, C:\apktool\home\res, -M, C:\apktool\home\Andro
idManifest.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, 17, --target-sdk-version, 17, -F, C:
\Users\JEEBO_~1\AppData\Local\Temp\APKTOOL7086740129581580055.tmp, -0, arsc, -I,
E:\apktool\framework\1.apk, -I, E:\apktool\framework\2.apk, -S, C:\apktool\home
\res, -M, C:\apktool\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, 17, --target-sdk-version, 17, -F, C:\Users\JEEBO_~1\AppData\Local\Tem
p\APKTOOL7086740129581580055.tmp, -0, arsc, -I, E:\apktool\framework\1.apk, -I,
E:\apktool\framework\2.apk, -S, C:\apktool\home\res, -M, C:\apktool\home\Android
Manifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more

[Q] Error in Recompile

Hi
I plan to Decompile Settings.apk APK Studio's I Now I want Recompile error was finished.
SDK and JDK installed the latest version of the latest version've also got the latest version of APKTool
Please help me
ROM version CM12.1
Error:
I: Using Apktool 2.0.0
W: Could not find sources
I: Building resources...
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:117: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferencePanel'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:125: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceHeaderList'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:136: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceFragmentList'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:143: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceHeaderPanel'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:144: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceHeaderList'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:145: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceFragment'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:290: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference.Material.DialogPreference'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:349: error: Error: No resource found that matches the given name: attr 'android:closeItemLayout'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:347: error: Error: No resource found that matches the given name: attr 'android:errorColor'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:346: error: Error: No resource found that matches the given name: attr 'androidreferencePanelStyle'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:348: error: Error: No resource found that matches the given name: attr 'android:successColor'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:370: error: Error: No resource found that matches the given name: attr 'android:closeItemLayout'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:368: error: Error: No resource found that matches the given name: attr 'android:errorColor'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:367: error: Error: No resource found that matches the given name: attr 'androidreferencePanelStyle'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:369: error: Error: No resource found that matches the given name: attr 'android:successColor'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:414: error: Error: No resource found that matches the given name: attr 'android:closeItemLayout'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:412: error: Error: No resource found that matches the given name: attr 'android:errorColor'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:410: error: Error: No resource found that matches the given name: attr 'androidreferenceFragmentListStyle'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:411: error: Error: No resource found that matches the given name: attr 'androidreferenceFragmentPaddingSide'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:406: error: Error: No resource found that matches the given name: attr 'androidreferenceFragmentStyle'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:408: error: Error: No resource found that matches the given name: attr 'androidreferenceHeaderPanelStyle'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:409: error: Error: No resource found that matches the given name: attr 'androidreferenceListStyle'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:407: error: Error: No resource found that matches the given name: attr 'androidreferencePanelStyle'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:413: error: Error: No resource found that matches the given name: attr 'android:successColor'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:456: error: Error: No resource found that matches the given name: attr 'android:closeItemLayout'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:454: error: Error: No resource found that matches the given name: attr 'android:errorColor'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:455: error: Error: No resource found that matches the given name: attr 'android:successColor'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Pouya\AppData\Local\Temp\brut_util_Jar_6415734235692862927.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-7148efb99f, -F, C:\Users\Pouya\AppData\Local\Temp\APKTOOL6294396769437643753.tmp, -0, arsc, -I, C:\Users\Pouya\apktool\framework\1.apk, -S, C:\Users\Pouya\Desktop\Settings\res, -M, C:\Users\Pouya\Desktop\Settings\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
at brut.androlib.Androlib.buildResources(Androlib.java:396)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
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\Pouya\AppData\Local\Temp\brut_util_Jar_6415734235692862927.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-7148efb99f, -F, C:\Users\Pouya\AppData\Local\Temp\APKTOOL6294396769437643753.tmp, -0, arsc, -I, C:\Users\Pouya\apktool\framework\1.apk, -S, C:\Users\Pouya\Desktop\Settings\res, -M, C:\Users\Pouya\Desktop\Settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:444)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Pouya\AppData\Local\Temp\brut_util_Jar_6415734235692862927.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-7148efb99f, -F, C:\Users\Pouya\AppData\Local\Temp\APKTOOL6294396769437643753.tmp, -0, arsc, -I, C:\Users\Pouya\apktool\framework\1.apk, -S, C:\Users\Pouya\Desktop\Settings\res, -M, C:\Users\Pouya\Desktop\Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)
... 6 more

[[GUIDE]] TroubleShooting Errors in Apktool while Recompiling Apks!

Yo Guys! After a long time I am writing a thread on Apktool after writing THIS thread!
So, this time I shall be dealing with finding the errors while recompiling a SYSTEM App in apktool!
Most of us know how to decompile/recompile apks, but if we get the error, we often get scared and feel lost.
So this guide shall surely be helping you with knowing what error have you exactly faced, and may be you can work on it
THIS GUIDE IS HUGE SO YOU NEED PATIENCE TO READ IT!​ So, let's start.
So, for example, I tried the 5TabUI guide by Sir @dendenXD in my JB 4.2.2 device. When I recompiled I got this error:
Code:
C:\Documents and Settings\TEMP>apktool b SystemUIGionee
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Documents and Settings\TEMP\SystemUIGionee\res\layout\gemini_status_bar_expanded.xml:10: error: Error: No resource found that matches the given name (at 'id' with value '@id/dendenxd').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17,
-F, C:\DOCUME~1\TEMP\LOCALS~1\Temp\APKTOOL7638241710007663088.tmp,
-0, arsc, -I, C:\Documents and Settings\TEMP\apktool\framework\1.apk,
-S, C:\Documents and Settings\TEMP\SystemUIGionee\res,
-M, C:\Documents and Settings\TEMP\SystemUIGionee\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, 17, --target-sdk-version, 17,
-F, C:\DOCUME~1\TEMP\LOCALS~1\Temp\APKTOOL7638241710007663088.tmp, -0, arsc,
-I, C:\Documents and Settings\TEMP\apktool\framework\1.apk,
-S, C:\Documents and Settings\TEMP\SystemUIGionee\res,
-M, C:\Documents and Settings\TEMP\SystemUIGionee\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-sdk-version, 17, --target-sdk-version, 17,
-F, C:\DOCUME~1\TEMP\LOCALS~1\Temp\APKTOOL7638241710007663088.tmp, -0, arsc,
-I, C:\Documents and Settings\TEMP\apktool\framework\1.apk,
-S, C:\Documents and Settings\TEMP\SystemUIGionee\res,
-M, C:\Documents and Settings\TEMP\SystemUIGionee\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Documents and Settings\TEMP>
Big isn't it? Well not hard though.
Let's see what apktool has got for you.
Scroll through the error.
And find this line in my error.
Code:
C:\Documents and Settings\TEMP\SystemUIGionee\res\layout\gemini_status_bar_expanded.xml:10: error: Error: No resource found that matches the given name (at 'id' with value '@id/dendenxd').
Notice some thing?
The line above is the only error that I got, so we now have a easy work!
When checking error,
First separate it.
Okay let me separate every thing.
This is the xml, where you have a error.
Code:
C:\Documents and Settings\TEMP\SystemUIGionee\res\layout\gemini_status_bar_expanded.xml
In the same line you will see a number, here it is:
Code:
:10:
This it the number of line in the xml where error is seen.
Next, the error!
This is the error that I am facing:
Code:
error: Error: No resource found that matches the given name (at 'id' with value '@id/dendenxd')
Yes, that is the error!
So here is the solution to solve the 'id' errors.
In my case, I will open gemini_status_bar_expanded, directly jump to line 10, and look for @id/dendenxd in the line, alright?
Now just make:
Code:
@id/dendenxd
Look like this:
Code:
@+id/dendenxd
Save the XML. Done. Now recompile the UI and voila! You are done!
Now next, we shall be dealing with a big error than the previous one.
Recently, one of my friend gave me a UI that even when recompiled directly without any changes, would give a big list of errors!
So I tried it and removed the errors!
This is what the error was:
Code:
C:\Documents and Settings\TEMP>apktool b AryanUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\DOCUME~1\TEMP\LOCALS~1\Temp\AP
KTOOL1329044921247052698.tmp, -I, C:\Documents and Settings\TEMP\apktool\framewo
rk\1.apk, -S, C:\Documents and Settings\TEMP\AryanUI\res, -M, C:\Documents and S
ettings\TEMP\AryanUI\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, 17, --target-sdk-version, 17, -F, C:
\DOCUME~1\TEMP\LOCALS~1\Temp\APKTOOL1329044921247052698.tmp, -I, C:\Documents an
d Settings\TEMP\apktool\framework\1.apk, -S, C:\Documents and Settings\TEMP\Arya
nUI\res, -M, C:\Documents and Settings\TEMP\AryanUI\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, 17, --target-sdk-version, 17, -F, C:\DOCUME~1\TEMP\LOCALS~1\Temp\APKT
OOL1329044921247052698.tmp, -I, C:\Documents and Settings\TEMP\apktool\framework
\1.apk, -S, C:\Documents and Settings\TEMP\AryanUI\res, -M, C:\Documents and Set
tings\TEMP\AryanUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title.xml:14: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarNotificationText').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title.xml:19: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarNotificationText').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title.xml:21: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarNotificationText').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title_gemini.xml:14: error: Error: No resource found that matches the given name
(at 'style' with value '@style/SystemBarNotificationText').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title_gemini.xml:19: error: Error: No resource found that matches the given name
(at 'style' with value '@style/SystemBarNotificationText').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title_gemini.xml:24: error: Error: No resource found that matches the given name
(at 'style' with value '@style/SystemBarNotificationText').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title_gemini.xml:26: error: Error: No resource found that matches the given name
(at 'style' with value '@style/SystemBarNotificationText').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:5
: error: Error: No resource found that matches the given name (at 'style' with v
alue '@style/SystemBarPanelSettingsRow').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:6
: error: Error: No resource found that matches the given name (at 'style' with v
alue '@style/SystemBarPanelSettingsIcon').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:7
: error: Error: No resource found that matches the given name (at 'style' with v
alue '@style/SystemBarPanelSettingsContents').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
0: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
1: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsRow').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
2: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsIcon').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
3: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsContents').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
5: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
6: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsRow').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
7: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsIcon').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
8: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsContents').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:2
1: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:2
2: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsRow').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:2
3: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsIcon').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:2
6: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:2
7: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsRow').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:2
8: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsIcon').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:2
9: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsContents').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:3
2: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:3
3: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsRow').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:3
4: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsIcon').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:3
5: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsContents').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:3
7: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Documents and Settings\TEMP>
Veeeery biiiiiig!!!!
Yes, now this is time consuming!
Now. what we have to do is, look for the errors.
Yes, right above I told you how to look for a error, just like that let's solve one error here.
So one of the error is:
Code:
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title.xml:14: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarNotificationText').
So, according to this, the error is in:
Code:
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_title.xml
In line:
Code:
:14:
And the error is:
Code:
Error: No resource found that matches the given name (at 'style' with value'@style/SystemBarNotificationText').
So, how to solve this if there is no style with such name in your UI?
SIMPLE, JUST DELETE THOSE LINES FROM THE XMLs!​Yes!
Let's do it.
I shall now open system_bar_notification_panel_title.xml, look at line 14 in it, and search for a line like:
Code:
style="@style/SystemBarNotificationText"
And simply delete that WHOLE line and save the xml.
Same goes with all other errors! If you find a error that has been titled this value not found from an xml, simply delete the line, with correct SPACING by the way!
Easy right!
Now coming to smali errors while recompiling.
Most of the smalis are usually built for apktool 1.5.2 , so I always recommend using apktool 1.5.2 for daily use.
If it is specified that the mod needs apktool 2.0.0, then you are free to use apktool 2.0.0!
That's it for today! Hope this helped you!
Credits:
@iBotPeaches[For APKTOOL!]
@out386 [Ritayan Chakraborty: For helping me out in troubleshooting errors and solve the 'id' errors]
@arun.negi004[For the tip of deleting the required lines] @Aniruddha_Pathak[ME]
And YOU!
HIT THANKS IF YOU LIKED MY WORKS!​
Goodwork ill try this 1 hope it will work :good
kenzukie said:
Goodwork ill try this 1 hope it will work :good
Click to expand...
Click to collapse
Do tell me how it worked for you And don't forget to hit thanks if it worked!

Categories

Resources