[Android Software Development] vel_tins:
No resource found that matches the given name...

Similar problem here, when rebuilding "settings.apk" from 5.1.1 Android TV box.

There was nothing changed, just decompiled and recompiled.

Same error message on Windows7 and Ubuntu:

Any ideas?

virtual-machine:~/M8S+$ ./apktool b SettingsM8 test.apk

I: Using Apktool 2.1.1

I: Checking whether sources has changed...

I: Smaling smali folder into classes.dex...

I: Checking whether resources has changed...

I: Building resources...

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:103: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferencePanel'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:111: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceHeaderList'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:122: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceFragmentList'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:129: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceHeaderPanel'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:130: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceHeaderList'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:131: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceFragment'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:276: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference.Material.DialogPreference'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:306: error: Error: No resource found that matches the given name: attr 'android:errorColor'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:304: error: Error: No resource found that matches the given name: attr 'android:preferencePanelStyle'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:305: error: Error: No resource found that matches the given name: attr 'android:regularColor'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:307: error: Error: No resource found that matches the given name: attr 'android:successColor'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:327: error: Error: No resource found that matches the given name: attr 'android:errorColor'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:325: error: Error: No resource found that matches the given name: attr 'android:preferencePanelStyle'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:326: error: Error: No resource found that matches the given name: attr 'android:regularColor'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:328: error: Error: No resource found that matches the given name: attr 'android:successColor'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:374: error: Error: No resource found that matches the given name: attr 'android:errorColor'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:371: error: Error: No resource found that matches the given name: attr 'android:preferenceFragmentListStyle'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:372: error: Error: No resource found that matches the given name: attr 'android:preferenceFragmentPaddingSide'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:367: error: Error: No resource found that matches the given name: attr 'android:preferenceFragmentStyle'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:369: error: Error: No resource found that matches the given name: attr 'android:preferenceHeaderPanelStyle'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:370: error: Error: No resource found that matches the given name: attr 'android:preferenceListStyle'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:368: error: Error: No resource found that matches the given name: attr 'android:preferencePanelStyle'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:373: error: Error: No resource found that matches the given name: attr 'android:regularColor'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:375: error: Error: No resource found that matches the given name: attr 'android:successColor'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:417: error: Error: No resource found that matches the given name: attr 'android:errorColor'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:416: error: Error: No resource found that matches the given name: attr 'android:regularColor'.

W:

W: /home/jackie/M8S+/SettingsM8/res/values/styles.xml:418: error: Error: No resource found that matches the given name: attr 'android:successColor'.

W:

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_8565382568683160544.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-20160409, -F, /tmp/APKTOOL566390471946376521.tmp, -0, arsc, -0, arsc, -I, /home/jackie/apktool/framework/1.apk, -S, /home/jackie/M8S+/SettingsM8/res, -M, /home/jackie/M8S+/SettingsM8/AndroidManifest.xml]

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)

at brut.androlib.Androlib.buildResources(Androlib.java:371)

at brut.androlib.Androlib.build(Androlib.java:281)

at brut.androlib.Androlib.build(Androlib.java:254)

at brut.apktool.Main.cmdBuild(Main.java:224)

at brut.apktool.Main.main(Main.java:84)

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_8565382568683160544.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-20160409, -F, /tmp/APKTOOL566390471946376521.tmp, -0, arsc, -0, arsc, -I, /home/jackie/apktool/framework/1.apk, -S, /home/jackie/M8S+/SettingsM8/res, -M, /home/jackie/M8S+/SettingsM8/AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:436)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)

... 5 more

Caused by: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_8565382568683160544.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-20160409, -F, /tmp/APKTOOL566390471946376521.tmp, -0, arsc, -0, arsc, -I, /home/jackie/apktool/framework/1.apk, -S, /home/jackie/M8S+/SettingsM8/res, -M, /home/jackie/M8S+/SettingsM8/AndroidManifest.xml]

at brut.util.OS.exec(OS.java:95)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:430)

... 6 more