apktool -version) - 2.3.4W: E:ANDROID-GAndroidDEVAdvancedApkTool3-Outframework-res.apkresvaluesstyles.xml:2452: error: Resource entry Theme.DeviceDefault already has bag item dropdownListPreferredItemHeight.
W: E:ANDROID-GAndroidDEVAdvancedApkTool3-Outframework-res.apkresvaluesstyles.xml:2451: Originally defined here.
```
apktool d, apktool b without changing anything?To be honest @datdevs...
The Advanced Apktool software hasn't been updated by @BDFreak since 10 Feb 2016 as reflected on the following link.
https://forum.xda-developers.com/showthread.php?t=2639400
I do believe that @BDFreak is a very good developer but, I just wish that he would update the Advanced Apktool software since, at the time, it was an extremely valuable tool out there.
I'm just providing my thoughts and pointing something out that you may not be aware of.
Good Luck! :-)
~Ibuprophen
any body know about this problem
i also faced this problem
just delete doubles..
if we delete phone rebooting and stuck at bootloop
you test and try it
Do you have an apk for this? I'm curious if the duplicated resources exist in the original or if apktool decoded them improperly.
yes i have an apk i can upload you try on this unpack and repack
C:UsersPiya JeeDesktopapktool2 work on oreo>apktool b framework-res
I: Using Apktool 2.3.4_0503
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W: C:UsersPiya JeeDesktopapktool2 work on oreoframework-resresvaluesstyles.xml:2452: error: Resource entry Theme.DeviceDefault already has bag item dropdownListPreferredItemHeight.
W: C:UsersPiya JeeDesktopapktool2 work on oreoframework-resresvaluesstyles.xml:2451: Originally defined here.
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:UsersPIYAJE~1AppDataLocalTempbrut_util_Jar_96045326345974598.tmp, p, --forced-package-id, 1, --min-sdk-version, 26, --target-sdk-version, 26, --version-code, 26, --version-name, 8.0.0, --no-version-vectors, -F, C:UsersPIYAJE~1AppDataLocalTempAPKTOOL2390478510879530650.tmp, -x, -0, arsc, -0, qmg, -0, arsc, -S, C:UsersPiya JeeDesktopapktool2 work on oreoframework-resres, -M, C:UsersPiya JeeDesktopapktool2 work on oreoframework-resAndroidManifest.xml]
this is stock framework-res.apk try and please tell me solution for this
Closing as duplicate - https://github.com/iBotPeaches/Apktool/issues/315
@iBotPeaches Are you sure this is a duplicate of #315? :thinking:
That issue is talking about extraneous double quotes inside of otherwise successfully re-encoded APKs, whereas this one is talking about an error causing the re-encoding to fail for reasons that have nothing to do with quotes or even strings for that matter.
The base APK inside of the TikTok XAPK for example causes the following error while re-encoding:
W: <decode_dir>/res/values-v21/styles.xml:265: error: Resource entry iz already has bag item android:windowContentTransitions.
W: <decode_dir>/res/values-v21/styles.xml:264: Originally defined here.
The "resource entry" mentioned in the error message looks like this:
<style name="iz" parent="@style/fc">
<item name="android:windowBackground">@drawable/o5</item>
<item name="android:windowContentTransitions">true</item>
<item name="android:windowContentTransitions">true</item> <!-- Duplicate item -->
<item name="android:windowSharedElementEnterTransition">@transition/a</item>
<item name="android:windowSharedElementExitTransition">@transition/a</item>
<item name="android:windowSharedElementReturnTransition">@transition/a</item>
<item name="android:windowSharedElementReenterTransition">@transition/a</item>
</style>
I suggest reopening this issue and renaming it to Resource entry already has bag item, Resource entry bag items emitted twice, or something like that since it doesn't seem to be specific to strings at all and can easily be confused with #315 with the current title.
Thanks - I see what you mean. Reopened.