[Android Software/Hacking General [Developers Only]] ajiththiruvatta:
Can't Recompile

Any idea on this ???? :crying: I can compile app from other rom. not mine. any help ?

Logs:

**Decompile Successfull

I: Using Apktool 2.0.0-Beta9 on Settings.apk

I: Loading resource table...

W: Skipping "android" package group

I: Loading resource table...

W: Skipping "android" package group

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: E:\Android Company\Work Files\APK Tools v3.50\tools\Frameworks\2.0.0b9\1.apk

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Baksmaling...

I: Copying assets and libs...

I: Copying unknown files/dir...

I: Copying original files...

**Compile error :(

Preparing Projects\Settings.apk . . .

I: Using Apktool 2.0.0-Beta9 on Settings.apk

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res\values\styles.xml:69: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferencePanel'.

E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res\values\styles.xml:77: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceHeaderList'.

E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res\values\styles.xml:88: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceFragmentList'.

E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res\values\styles.xml:189: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Widget.Switch'.

E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res\values\styles.xml:205: error: Error: No resource found that matches the given name: attr 'android:preferencePanelStyle'.

E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res\values\styles.xml:215: error: Error: No resource found that matches the given name: attr 'android:preferencePanelStyle'.

E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res\values\styles.xml:222: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Dialog.Alert'.

E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res\values\styles.xml:229: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Light.Dialog.Alert'.

E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res\values\styles.xml:241: error: Error: No resource found that matches the given name: attr 'android:preferenceFragmentListStyle'.

E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res\values\styles.xml:242: error: Error: No resource found that matches the given name: attr 'android:preferenceFragmentPaddingSide'.

E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res\values\styles.xml:239: error: Error: No resource found that matches the given name: attr 'android:preferenceHeaderPanelStyle'.

E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res\values\styles.xml:240: error: Error: No resource found that matches the given name: attr 'android:preferenceListStyle'.

E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res\values\styles.xml:238: error: Error: No resource found that matches the given name: attr 'android:preferencePanelStyle'.

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\DOCUME~1\user\LOCALS~1\Temp\brut_util_Jar_3068233787267709001.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2, -F, C:\DOCUME~1\user\LOCALS~1\Temp\APKTOOL4280259419212628272.tmp, -0, arsc, -I, E:\Android Company\Work Files\APK Tools v3.50\tools\Frameworks\2.0.0b9\1.apk, -S, E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res, -M, E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\AndroidManifest.xml]

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

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

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

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

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

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

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\DOCUME~1\user\LOCALS~1\Temp\brut_util_Jar_3068233787267709001.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2, -F, C:\DOCUME~1\user\LOCALS~1\Temp\APKTOOL4280259419212628272.tmp, -0, arsc, -I, E:\Android Company\Work Files\APK Tools v3.50\tools\Frameworks\2.0.0b9\1.apk, -S, E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res, -M, E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\AndroidManifest.xml]

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

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

... 5 more

Caused by: brut.common.BrutException: could not exec command: [C:\DOCUME~1\user\LOCALS~1\Temp\brut_util_Jar_3068233787267709001.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2, -F, C:\DOCUME~1\user\LOCALS~1\Temp\APKTOOL4280259419212628272.tmp, -0, arsc, -I, E:\Android Company\Work Files\APK Tools v3.50\tools\Frameworks\2.0.0b9\1.apk, -S, E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\res, -M, E:\Android Company\Work Files\APK Tools v3.50\Projects\Settings.apk\AndroidManifest.xml]

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

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

... 6 more