• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps recompile issue

THE_SEM

Lurker
Apr 8, 2015
6
1
Does anyone know how to solve this issue:
Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/DialogWindowTitle'.

It looks there is an issue with values-v23\styles.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Base.Widget.AppCompat.Spinner.Underlined" parent="@android:style/Widget.Material.Spinner.Underlined" />
<style name="Base.Theme.AppCompat" parent="@Style/Base.V23.Theme.AppCompat" />
<style name="Base.Theme.AppCompat.Light" parent="@Style/Base.V23.Theme.AppCompat.Light" />
<style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Menu" parent="@android:style/TextAppearance.Material.Widget.ActionBar.Menu" />
<style name="Base.TextAppearance.AppCompat.Widget.Button.Inverse" parent="@android:style/AlertDialog" />
<style name="Base.Widget.AppCompat.Button.Colored" parent="@android:style/DialogWindowTitle" />
<style name="Base.Widget.AppCompat.RatingBar.Indicator" parent="@android:style/Widget.Material.RatingBar.Indicator" />
<style name="Base.Widget.AppCompat.RatingBar.Small" parent="@android:style/Widget.Material.RatingBar.Small" />
<style name="Base.V23.Theme.AppCompat" parent="@Style/Base.V22.Theme.AppCompat">
<item name="actionBarItemBackground">?android:actionBarItemBackground</item>
<item name="actionMenuTextAppearance">?android:actionMenuTextAppearance</item>
<item name="actionMenuTextColor">?android:actionMenuTextColor</item>
<item name="controlBackground">@drawable/abc_control_background_material</item>
<item name="ratingBarStyleIndicator">?android:ratingBarStyleIndicator</item>
<item name="ratingBarStyleSmall">?android:ratingBarStyleSmall</item>
</style>
<style name="Base.V23.Theme.AppCompat.Light" parent="@Style/Base.V22.Theme.AppCompat.Light">
<item name="actionBarItemBackground">?android:actionBarItemBackground</item>
<item name="actionMenuTextAppearance">?android:actionMenuTextAppearance</item>
<item name="actionMenuTextColor">?android:actionMenuTextColor</item>
<item name="controlBackground">@drawable/abc_control_background_material</item>
<item name="ratingBarStyleIndicator">?android:ratingBarStyleIndicator</item>
<item name="ratingBarStyleSmall">?android:ratingBarStyleSmall</item>
</style>
</resources>


*-*-*-*
The full extract is:



Microsoft Windows [versie 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. Alle rechten voorbehouden.

C:\Users\E\Desktop\APK\20161122>java -jar apktool.jar b albums
I: Using Apktool 2.0.0-RC4
I: Checking whether resources has changed...
I: Building resources...
C:\Users\E\Desktop\APK\20161122\albums\res\values-v23\styles.xml:7: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/AlertDialog'.

C:\Users\E\Desktop\APK\20161122\albums\res\values-v23\styles.xml:8: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/DialogWindowTitle'.

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\B\AppD
ata\Local\Temp\brut_util_Jar_8291676396664356237.tmp, p, --forced-package-id, 12
7, --min-sdk-version, 15, --target-sdk-version, 23, --version-code, 1, --version
-name, 1.0, -F, C:\Users\B\AppData\Local\Temp\APKTOOL6734778494729318702.tmp, -0
, arsc, -I, C:\Users\B\apktool\framework\1.apk, -S, C:\Users\B\Desktop\APK\20161
122\albums\res, -M, C:\Users\B\Desktop\APK\20161122\albums\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\B\AppData\Local\Temp\brut_util_Jar_8291676396664356237.
tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 2
3, --version-code, 1, --version-name, 1.0, -F, C:\Users\B\AppData\Local\Temp\APK
TOOL6734778494729318702.tmp, -0, arsc, -I, C:\Users\B\apktool\framework\1.apk, -
S, C:\Users\B\Desktop\APK\20161122\albums\res, -M, C:\Users\B\Desktop\APK\201611
22\albums\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:504)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:428)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\B\AppDat
a\Local\Temp\brut_util_Jar_8291676396664356237.tmp, p, --forced-package-id, 127,
--min-sdk-version, 15, --target-sdk-version, 23, --version-code, 1, --version-n
ame, 1.0, -F, C:\Users\E\AppData\Local\Temp\APKTOOL6734778494729318702.tmp, -0,
arsc, -I, C:\Users\E\apktool\framework\1.apk, -S, C:\Users\B\Desktop\APK\2016112
2\albums\res, -M, C:\Users\B\Desktop\APK\20161122\albums\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:498)

Thanks!!!
 
I dont know what "pulled from a ROM" is
it is an app free to change, I changed the database and want to recompile - this worked in the past.
I also came across https://ibotpeaches.github.io/Apktool/ on google while looking for an answer but in vain.
any help/clearancce is appreciated in this matter - I'm very novice

If the app is free to change, your best strategy would be to get hold of the source code, and work on that, rather than trying to work backwards from the APK.
Load the project into Android Studio, and build it from there.
 
  • Like
Reactions: Bg260
Upvote 0
Ok, but I only changed an entry in the SQLite-database, so I find it weird.
I think this change is even outside the Android Studio scope
I recompiled from cmd and i am allowed to change the APK.
I don't know if the issue can be fixed by changing something in the decompiled APK or what the exact problem is.
 
  • Like
Reactions: Bg260
Upvote 0
Ok, but I only changed an entry in the SQLite-database, so I find it weird.
I think this change is even outside the Android Studio scope
I recompiled from cmd and i am allowed to change the APK.
I don't know if the issue can be fixed by changing something in the decompiled APK or what the exact problem is.

If all you want to do is add a record to the database, then you don't even need to touch the application code.
But as @scary alien suggested, maybe contacting the original developer would be a good plan?
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones