Skip to content

Cannot install even after removing patches that fail #543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ralokr opened this issue Mar 14, 2025 · 2 comments
Closed

Cannot install even after removing patches that fail #543

ralokr opened this issue Mar 14, 2025 · 2 comments

Comments

@ralokr
Copy link

ralokr commented Mar 14, 2025

The first build failed, with 6 patches failing.

Log:
`

  • Device Info
    ReVanced Manager: 1.22.0
    Model: Pixel 8
    Android version: 15
    Supported architectures: arm64-v8a
    Root permissions: No

  • Patch Info
    App: com.twitter.android v10.83.0-release.0 (Suggested: Any)
    Patches version: v1.50.0
    Patches added: Bring back twitter
    Patches removed: None
    Default patch options changed: None

  • Settings
    Allow changing patch selection: true
    Version compatibility check: false
    Show universal patches: false
    Patches source: crimera/piko
    Integration source: crimera/revanced-integrations

  • Logs
    Reading APK
    Decoding app manifest
    Loading patches
    Merging integrations
    Deleting existing temporary files directory
    Decoding resources
    Executing patches
    Applied 60 patches
    Custom translator failed: app.revanced.patcher.patch.PatchException: com.android.tools.smali.dexlib2.builder.instruction.BuilderInstruction35c cannot be cast to com.android.tools.smali.dexlib2.builder.instruction.BuilderInstruction22c
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend$executePatch(Unknown Source:242)
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend(Unknown Source:282)
    at app.revanced.patcher.Patcher$apply$1.invoke(SourceFile:0)
    at app.revanced.patcher.Patcher$apply$1.invoke(SourceFile:0)
    at kotlinx.coroutines.flow.SafeFlow.collectSafely(Unknown Source:2)
    at kotlinx.coroutines.flow.AbstractFlow.collect(Unknown Source:71)
    at app.revanced.manager.flutter.MainActivity$runPatcher$1$patcherResult$1$2.invokeSuspend(Unknown Source:76)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:11)
    at kotlinx.coroutines.DispatchedTask.run(Unknown Source:98)
    at kotlinx.coroutines.EventLoopImplBase.processNextEvent(Unknown Source:23)
    at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Unknown Source:26)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Unknown Source:73)
    at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:0)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Unknown Source:6)
    at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:0)
    at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$35(Unknown Source:464)
    at app.revanced.manager.flutter.MainActivity.$r8$lambda$t9VOe3aFJZkCMY59Ya4Pcinu-pA(SourceFile:0)
    at app.revanced.manager.flutter.MainActivity$$ExternalSyntheticLambda6.run(SourceFile:0)
    at java.lang.Thread.run(Thread.java:1012)
    Caused by: java.lang.ClassCastException: com.android.tools.smali.dexlib2.builder.instruction.BuilderInstruction35c cannot be cast to com.android.tools.smali.dexlib2.builder.instruction.BuilderInstruction22c
    at crimera.patches.twitter.misc.shareMenu.nativeTranslator.NativeTranslatorPatch.execute(NativeTranslatorPatch.kt:67)
    at crimera.patches.twitter.misc.shareMenu.nativeTranslator.NativeTranslatorPatch.execute(NativeTranslatorPatch.kt:22)
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend$executePatch(Unknown Source:190)
    ... 18 more
    Customize Navigation Bar items failed: app.revanced.patcher.patch.PatchException: Collection contains no element matching the predicate.
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend$executePatch(Unknown Source:242)
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend(Unknown Source:282)
    at app.revanced.patcher.Patcher$apply$1.invoke(SourceFile:0)
    at app.revanced.patcher.Patcher$apply$1.invoke(SourceFile:0)
    at kotlinx.coroutines.flow.SafeFlow.collectSafely(Unknown Source:2)
    at kotlinx.coroutines.flow.AbstractFlow.collect(Unknown Source:71)
    at app.revanced.manager.flutter.MainActivity$runPatcher$1$patcherResult$1$2.invokeSuspend(Unknown Source:76)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:11)
    at kotlinx.coroutines.DispatchedTask.run(Unknown Source:98)
    at kotlinx.coroutines.EventLoopImplBase.processNextEvent(Unknown Source:23)
    at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Unknown Source:26)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Unknown Source:73)
    at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:0)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Unknown Source:6)
    at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:0)
    at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$35(Unknown Source:464)
    at app.revanced.manager.flutter.MainActivity.$r8$lambda$t9VOe3aFJZkCMY59Ya4Pcinu-pA(SourceFile:0)
    at app.revanced.manager.flutter.MainActivity$$ExternalSyntheticLambda6.run(SourceFile:0)
    at java.lang.Thread.run(Thread.java:1012)
    Caused by: java.util.NoSuchElementException: Collection contains no element matching the predicate.
    at crimera.patches.twitter.misc.customize.navbar.CustomiseNavBarPatch.execute(CustomiseNavBarPatch.kt:98)
    at crimera.patches.twitter.misc.customize.navbar.CustomiseNavBarPatch.execute(CustomiseNavBarPatch.kt:35)
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend$executePatch(Unknown Source:190)
    ... 18 more
    Customize reply sort filter failed: app.revanced.patcher.patch.PatchException: com.android.tools.smali.dexlib2.builder.instruction.BuilderInstruction35c cannot be cast to com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend$executePatch(Unknown Source:242)
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend(Unknown Source:282)
    at app.revanced.patcher.Patcher$apply$1.invoke(SourceFile:0)
    at app.revanced.patcher.Patcher$apply$1.invoke(SourceFile:0)
    at kotlinx.coroutines.flow.SafeFlow.collectSafely(Unknown Source:2)
    at kotlinx.coroutines.flow.AbstractFlow.collect(Unknown Source:71)
    at app.revanced.manager.flutter.MainActivity$runPatcher$1$patcherResult$1$2.invokeSuspend(Unknown Source:76)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:11)
    at kotlinx.coroutines.DispatchedTask.run(Unknown Source:98)
    at kotlinx.coroutines.EventLoopImplBase.processNextEvent(Unknown Source:23)
    at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Unknown Source:26)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Unknown Source:73)
    at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:0)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Unknown Source:6)
    at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:0)
    at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$35(Unknown Source:464)
    at app.revanced.manager.flutter.MainActivity.$r8$lambda$t9VOe3aFJZkCMY59Ya4Pcinu-pA(SourceFile:0)
    at app.revanced.manager.flutter.MainActivity$$ExternalSyntheticLambda6.run(SourceFile:0)
    at java.lang.Thread.run(Thread.java:1012)
    Caused by: java.lang.ClassCastException: com.android.tools.smali.dexlib2.builder.instruction.BuilderInstruction35c cannot be cast to com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
    at crimera.patches.twitter.misc.customize.replySorting.DefaultReplySortingPatch.execute(DefaultReplySortingPatch.kt:71)
    at crimera.patches.twitter.misc.customize.replySorting.DefaultReplySortingPatch.execute(DefaultReplySortingPatch.kt:35)
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend$executePatch(Unknown Source:190)
    ... 18 more
    Download patch failed: app.revanced.patcher.patch.PatchException: Collection contains no element matching the predicate.
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend$executePatch(Unknown Source:242)
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend(Unknown Source:282)
    at app.revanced.patcher.Patcher$apply$1.invoke(SourceFile:0)
    at app.revanced.patcher.Patcher$apply$1.invoke(SourceFile:0)
    at kotlinx.coroutines.flow.SafeFlow.collectSafely(Unknown Source:2)
    at kotlinx.coroutines.flow.AbstractFlow.collect(Unknown Source:71)
    at app.revanced.manager.flutter.MainActivity$runPatcher$1$patcherResult$1$2.invokeSuspend(Unknown Source:76)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:11)
    at kotlinx.coroutines.DispatchedTask.run(Unknown Source:98)
    at kotlinx.coroutines.EventLoopImplBase.processNextEvent(Unknown Source:23)
    at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Unknown Source:26)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Unknown Source:73)
    at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:0)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Unknown Source:6)
    at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:0)
    at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$35(Unknown Source:464)
    at app.revanced.manager.flutter.MainActivity.$r8$lambda$t9VOe3aFJZkCMY59Ya4Pcinu-pA(SourceFile:0)
    at app.revanced.manager.flutter.MainActivity$$ExternalSyntheticLambda6.run(SourceFile:0)
    at java.lang.Thread.run(Thread.java:1012)
    Caused by: java.util.NoSuchElementException: Collection contains no element matching the predicate.
    at crimera.patches.twitter.premium.unlockdownloads.DownloadPatch.execute(DownloadPatch.kt:115)
    at crimera.patches.twitter.premium.unlockdownloads.DownloadPatch.execute(DownloadPatch.kt:25)
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend$executePatch(Unknown Source:190)
    ... 18 more
    Enable Reader Mode failed: app.revanced.patcher.patch.PatchException: EnableReaderMode1Fingerprint not found
    at crimera.patches.twitter.premium.readermode.EnableReaderModePatch.execute(EnableReaderModePatch.kt:29)
    at crimera.patches.twitter.premium.readermode.EnableReaderModePatch.execute(EnableReaderModePatch.kt:16)
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend$executePatch(Unknown Source:190)
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend(Unknown Source:282)
    at app.revanced.patcher.Patcher$apply$1.invoke(SourceFile:0)
    at app.revanced.patcher.Patcher$apply$1.invoke(SourceFile:0)
    at kotlinx.coroutines.flow.SafeFlow.collectSafely(Unknown Source:2)
    at kotlinx.coroutines.flow.AbstractFlow.collect(Unknown Source:71)
    at app.revanced.manager.flutter.MainActivity$runPatcher$1$patcherResult$1$2.invokeSuspend(Unknown Source:76)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:11)
    at kotlinx.coroutines.DispatchedTask.run(Unknown Source:98)
    at kotlinx.coroutines.EventLoopImplBase.processNextEvent(Unknown Source:23)
    at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Unknown Source:26)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Unknown Source:73)
    at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:0)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Unknown Source:6)
    at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:0)
    at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$35(Unknown Source:464)
    at app.revanced.manager.flutter.MainActivity.$r8$lambda$t9VOe3aFJZkCMY59Ya4Pcinu-pA(SourceFile:0)
    at app.revanced.manager.flutter.MainActivity$$ExternalSyntheticLambda6.run(SourceFile:0)
    at java.lang.Thread.run(Thread.java:1012)
    Hide FAB failed: app.revanced.patcher.patch.PatchException: List contains no element matching the predicate.
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend$executePatch(Unknown Source:242)
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend(Unknown Source:282)
    at app.revanced.patcher.Patcher$apply$1.invoke(SourceFile:0)
    at app.revanced.patcher.Patcher$apply$1.invoke(SourceFile:0)
    at kotlinx.coroutines.flow.SafeFlow.collectSafely(Unknown Source:2)
    at kotlinx.coroutines.flow.AbstractFlow.collect(Unknown Source:71)
    at app.revanced.manager.flutter.MainActivity$runPatcher$1$patcherResult$1$2.invokeSuspend(Unknown Source:76)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:11)
    at kotlinx.coroutines.DispatchedTask.run(Unknown Source:98)
    at kotlinx.coroutines.EventLoopImplBase.processNextEvent(Unknown Source:23)
    at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Unknown Source:26)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Unknown Source:73)
    at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:0)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Unknown Source:6)
    at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:0)
    at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$35(Unknown Source:464)
    at app.revanced.manager.flutter.MainActivity.$r8$lambda$t9VOe3aFJZkCMY59Ya4Pcinu-pA(SourceFile:0)
    at app.revanced.manager.flutter.MainActivity$$ExternalSyntheticLambda6.run(SourceFile:0)
    at java.lang.Thread.run(Thread.java:1012)
    Caused by: java.util.NoSuchElementException: List contains no element matching the predicate.
    at crimera.patches.twitter.misc.fab.HideFABPatch.execute(HideFABPatch.kt:51)
    at crimera.patches.twitter.misc.fab.HideFABPatch.execute(HideFABPatch.kt:16)
    at app.revanced.patcher.Patcher$apply$1.invokeSuspend$executePatch(Unknown Source:190)
    ... 18 more
    Compiling patched dex files
    Compiled 12 dex files
    Compiling modified resources
    An error occurred:
    brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~KdmchVhXwK2aqGO96idUKg==/app.revanced.manager.flutter-cy4anwf7dP_HtiECcbJFUw==/lib/arm64/libaapt2.so, compile, --dir, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-NECFWM/revanced-temporary-files/apk/res, --legacy, -o, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-NECFWM/revanced-temporary-files/apk/build/resources.zip]
    at brut.androlib.AaptInvoker.invokeAapt2(Unknown Source:144)
    at brut.androlib.AaptInvoker.invokeAapt(Unknown Source:106)
    at app.revanced.patcher.data.ResourceContext.get(SourceFile:0)
    at app.revanced.patcher.Patcher.get(SourceFile:0)
    at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$35(Unknown Source:495)
    at app.revanced.manager.flutter.MainActivity.$r8$lambda$t9VOe3aFJZkCMY59Ya4Pcinu-pA(SourceFile:0)
    at app.revanced.manager.flutter.MainActivity$$ExternalSyntheticLambda6.run(SourceFile:0)
    at java.lang.Thread.run(Thread.java:1012)
    Caused by: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~KdmchVhXwK2aqGO96idUKg==/app.revanced.manager.flutter-cy4anwf7dP_HtiECcbJFUw==/lib/arm64/libaapt2.so, compile, --dir, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-NECFWM/revanced-temporary-files/apk/res, --legacy, -o, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-NECFWM/revanced-temporary-files/apk/build/resources.zip]
    at brut.util.OS.exec(Unknown Source:75)
    at brut.androlib.AaptInvoker.invokeAapt2(Unknown Source:122)
    ... 7 more
    `

I unchecked all six and tried again, but it failed again.

Log:

`- Device Info
ReVanced Manager: 1.22.0
Model: Pixel 8
Android version: 15
Supported architectures: arm64-v8a
Root permissions: No

  • Patch Info
    App: com.twitter.android v10.83.0-release.0 (Suggested: Any)
    Patches version: v1.50.0
    Patches added: Bring back twitter
    Patches removed: Customize Navigation Bar items, Customize reply sort filter, Hide FAB, Custom translator, Enable Reader Mode, Download patch
    Default patch options changed: None

  • Settings
    Allow changing patch selection: true
    Version compatibility check: false
    Show universal patches: false
    Patches source: crimera/piko
    Integration source: crimera/revanced-integrations

  • Logs
    Reading APK
    Decoding app manifest
    Loading patches
    Merging integrations
    Deleting existing temporary files directory
    Decoding resources
    Executing patches
    Applied 60 patches
    Compiling patched dex files
    Compiled 12 dex files
    Compiling modified resources
    An error occurred:
    brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~KdmchVhXwK2aqGO96idUKg==/app.revanced.manager.flutter-cy4anwf7dP_HtiECcbJFUw==/lib/arm64/libaapt2.so, compile, --dir, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-KUVBEO/revanced-temporary-files/apk/res, --legacy, -o, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-KUVBEO/revanced-temporary-files/apk/build/resources.zip]
    at brut.androlib.AaptInvoker.invokeAapt2(Unknown Source:144)
    at brut.androlib.AaptInvoker.invokeAapt(Unknown Source:106)
    at app.revanced.patcher.data.ResourceContext.get(SourceFile:0)
    at app.revanced.patcher.Patcher.get(SourceFile:0)
    at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$35(Unknown Source:495)
    at app.revanced.manager.flutter.MainActivity.$r8$lambda$t9VOe3aFJZkCMY59Ya4Pcinu-pA(SourceFile:0)
    at app.revanced.manager.flutter.MainActivity$$ExternalSyntheticLambda6.run(SourceFile:0)
    at java.lang.Thread.run(Thread.java:1012)
    Caused by: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~KdmchVhXwK2aqGO96idUKg==/app.revanced.manager.flutter-cy4anwf7dP_HtiECcbJFUw==/lib/arm64/libaapt2.so, compile, --dir, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-KUVBEO/revanced-temporary-files/apk/res, --legacy, -o, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-KUVBEO/revanced-temporary-files/apk/build/resources.zip]
    at brut.util.OS.exec(Unknown Source:75)
    at brut.androlib.AaptInvoker.invokeAapt2(Unknown Source:122)
    ... 7 more`

I have already tried using the RVX manager (1.22) instead of ReVanced manager, but ended up getting the same set of errors.

What can I do differently to successfully install X?

@PlasmaticRiver
Copy link

Why not just use one of the premade APKs hosted here?

@kitadai31
Copy link
Contributor

Fixed in a364bec

@crimera crimera closed this as completed Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants