this post was submitted on 07 Aug 2023
6 points (100.0% liked)

ReVanced App

1380 readers
1 users here now

Continuing the legacy of Vanced.

๐Ÿ–ฅ๏ธ Official website.
๐Ÿค– ReVanced on GitHub.
๐Ÿ’ฌ Discord.
๐Ÿฆ Twitter.
๐Ÿ“ƒ Telegram.
๐Ÿ’– GitHub Sponsor.
๐Ÿซ‚ Open Collective.

founded 1 year ago
MODERATORS
6
submitted 1 year ago* (last edited 1 year ago) by OneNot to c/revanced
 

I kept getting an issue where youtube would stop buffering after around one minute and so went to update the manager and then re-install YT and YT Music. I did that just fine with YT and the issue seems to be gone (though I've only barely tested it, but regardless that's not the issue at hand). However, YT Music fails to patch. All the patches appear to go through ("Applied"), but an error occurs on "Compiling resources".

I've tried 3 of the latest YT Music apks to patch.

Here's the error:

Initializing installer
Creating working directory
Copying original apk
Unpacking input apk
Reading dex files
Decoding AndroidManifest.xml only, because resources are not needed
Merging integrations
Deleting existing resource cache directory
Decoding resources
Executing patches
Applied Background play
Applied Bypass certificate checks
Applied Codecs unlock
Applied Exclusive audio playback
Applied Hide get premium
Applied Minimized playback music
Applied Music video ads
Applied Upgrade button remover
Applied Vanced MicroG support
Repacking patched apk
Compiling resources
An error occurred! Aborted
Error:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~cOsHdudq9VOmloDGwKZGTQ==/app.revanced.manager.flutter-sXh4vm8w4Q2J38Oz1y3LOw==/lib/arm64/libaapt2.so, link, -o, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-QDVNZP/cache/aapt_temp_file, --min-sdk-version, 21, --target-sdk-version, 33, --version-code, 61352240, --version-name, 6.13.52, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --allow-reserved-package-id, -e, /data/user/0/app.revanced.manager.flutter/cache/APKTOOL744672221559764561.tmp, -0, arsc, -I, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-QDVNZP/cache/1.apk, --manifest, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-QDVNZP/cache/AndroidManifest.xml, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-QDVNZP/cache/build/resources.zip]
	at brut.androlib.res.AndrolibResources.aapt2Package(AndrolibResources.java:484)
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:619)
	at app.revanced.patcher.Patcher.save(Patcher.kt:128)
	at app.revanced.manager.flutter.MainActivity.runPatcher$lambda-32(MainActivity.kt:276)
	at app.revanced.manager.flutter.MainActivity.$r8$lambda$efRWk2Z7aIFbIqnpE9hv8LpAiuk(Unknown Source:0)
	at app.revanced.manager.flutter.MainActivity$$ExternalSyntheticLambda13.run(Unknown Source:24)
	at java.lang.Thread.run(Thread.java:1012)
Caused by: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~cOsHdudq9VOmloDGwKZGTQ==/app.revanced.manager.flutter-sXh4vm8w4Q2J38Oz1y3LOw==/lib/arm64/libaapt2.so, link, -o, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-QDVNZP/cache/aapt_temp_file, --min-sdk-version, 21, --target-sdk-version, 33, --version-code, 61352240, --version-name, 6.13.52, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --allow-reserved-package-id, -e, /data/user/0/app.revanced.manager.flutter/cache/APKTOOL744672221559764561.tmp, -0, arsc, -I, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-QDVNZP/cache/1.apk, --manifest, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-QDVNZP/cache/AndroidManifest.xml, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-QDVNZP/cache/build/resources.zip]
	at brut.util.OS.exec(OS.java:99)
	at brut.androlib.res.AndrolibResources.aapt2Package(AndrolibResources.java:480)
	... 6 more

Any idea?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Jeom 2 points 1 year ago (1 children)

happens to me all the time too, from my experience its by chance i tried adding the same patches to the same apk, sometimes it works sometimes it doesn't. if youre feeling like its failing too much to be luck clear cache or something.

[โ€“] TooMuchVanced 0 points 1 year ago

The log indicates that you're using version 6.13.52 but the issue is that the apktool used by ReVanced doesn't yet support a material 3 color that's included in that version (Also the reason why Youtube ReVanced has been stuck on v18.23.35 for ages now). To patch yt music please use v6.10.52.