Open CrazyChaoz opened 7 months ago
Hi @CrazyChaoz! Thanks for reporting the issue! Do you have news about it?
I see similar errors with the com.ttxapps.megasync apk version 6.3.11 from Google Play:
W: /home/raxod502/scratch/megasync-6.3.11/res/values/styles.xml:4573: error: expected enum but got (raw string) 0.
W: /home/raxod502/scratch/megasync-6.3.11/res/values/styles.xml:4578: error: expected enum but got (raw string) 0.
W: /home/raxod502/scratch/megasync-6.3.11/res/values/styles.xml:4580: error: expected enum but got (raw string) 1.
W: /home/raxod502/scratch/megasync-6.3.11/res/values-sw600dp/styles.xml:5: error: expected enum but got (raw string) 1.
W: /home/raxod502/scratch/megasync-6.3.11/res/values-land/styles.xml:5: error: expected enum but got (raw string) 1.
W: /home/raxod502/scratch/megasync-6.3.11/res/values/styles.xml:4689: error: expected enum but got (raw string) 1.
W: /home/raxod502/scratch/megasync-6.3.11/res/values/styles.xml:5383: error: expected enum but got (raw string) 3.
W: /home/raxod502/scratch/megasync-6.3.11/res/values/styles.xml:5420: error: expected enum but got (raw string) 3.
W: /home/raxod502/scratch/megasync-6.3.11/res/values/styles.xml:5487: error: expected enum but got (raw string) 1.
W: /home/raxod502/scratch/megasync-6.3.11/res/values/styles.xml:5682: error: expected enum but got (raw string) 1.
W: /home/raxod502/scratch/megasync-6.3.11/res/values/styles.xml:5718: error: expected enum but got (raw string) 1.
W: /home/raxod502/scratch/megasync-6.3.11/res/values/styles.xml:5801: error: expected enum but got (raw string) 1.
W: /home/raxod502/scratch/megasync-6.3.11/res/values/styles.xml:5815: error: expected enum but got (raw string) 1.
W: /home/raxod502/scratch/megasync-6.3.11/res/values/styles.xml:5976: error: expected enum but got (raw string) 3.
W: /home/raxod502/scratch/megasync-6.3.11/res/values/styles.xml:5987: error: expected enum but got (raw string) 3.
W: error: failed linking references.
brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_170920648060031385601512344811055241028.tmp, link, -o, /tmp/APKTOOL5949621063467434960.tmp, --package-id, 127, --min-sdk-version, 21, --target-sdk-version, 34, --version-code, 24030810, --version-name, 6.3.11, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --allow-reserved-package-id, --no-compile-sdk-metadata, --warn-manifest-validation, -e, /tmp/APKTOOL7349574061716970862.tmp, -0, arsc, -I, /home/raxod502/.local/share/apktool/framework/1.apk, --manifest, /home/raxod502/scratch/megasync-6.3.11/AndroidManifest.xml, /home/raxod502/scratch/megasync-6.3.11/build/resources.zip]
Information
More Accurate Description
in the affected resource files there is a (seemingly) arbitrary number of xml tags (usually) at the end, within the
<resources>
with the following structure:<item type=\"\S*\" name=\"\" \/>
some files have none of the empty name tag tags, some have just them, and most have something in between
in public.xml is the tag different, there it is
<public type=\"\S*\" name=\"\" id=\"\S*\" \/>
apk.sh output
or
Steps to Reproduce
APK
I had issues with
Local Fix
Manually remove the affected lines (?) and try to rebuild until no errors pop up anymore The apps were able to be built, but there were internal issues (This might also be an issue with apktool --resource-mode dummy, idk for sure)