Skip to content
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

Errors building Revanced cli shadowJar #2

Closed
CriticalRange opened this issue Apr 19, 2022 · 1 comment
Closed

Errors building Revanced cli shadowJar #2

CriticalRange opened this issue Apr 19, 2022 · 1 comment

Comments

@CriticalRange
Copy link

Hello! I got errors related to building shadowJar
If you can look at it it will be very useful, thanks!


> Task :compileKotlin FAILED
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (8, 35): Unresolved reference: PatchMetadata
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (46, 35): Type mismatch: inferred type is File but InputStream was expected
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (46, 38): No value passed for parameter 'output'
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (46, 38): No value passed for parameter 'signatures'
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (52, 25): Unresolved reference: addFiles
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (60, 32): Type mismatch: inferred type is List<Patch> but Patch was expected
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (65, 21): Unresolved reference: resolveSignatures
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (71, 48): Type mismatch: inferred type is () -> Unit but Boolean was expected
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (72, 54): Unresolved reference: it
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (79, 39): Unresolved reference: size
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (82, 22): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (82, 32): Cannot infer a type for this parameter. Please specify it explicitly.
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (93, 21): Type mismatch: inferred type is Unit but Map<String, [ERROR : MemoryDataStore]> was expected
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (102, 30): Type mismatch: inferred type is Map<String, Result<Nothing?>> but Map<[ERROR : PatchMetadata], Result<PatchResult>> was expected
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/Main.kt: (106, 47): Unresolved reference: PatchMetadata
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/runner/AdbRunner.kt: (9, 12): Unresolved reference: jf
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/runner/AdbRunner.kt: (20, 31): Unresolved reference: MemoryDataStore
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/utils/DexReplacer.kt: (3, 8): Unresolved reference: lanchon
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/utils/DexReplacer.kt: (4, 12): Unresolved reference: jf
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/utils/DexReplacer.kt: (9, 13): Unresolved reference: BasicDexFileNamer
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/utils/DexReplacer.kt: (12, 56): Unresolved reference: MemoryDataStore
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/utils/DexReplacer.kt: (26, 28): Cannot infer a type for this parameter. Please specify it explicitly.
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/utils/DexReplacer.kt: (26, 29): Destructuring declaration initializer of type Map.Entry<String, ???> must have a 'component1()' function
e: /home/critical/Documents/revanced-cli/src/main/kotlin/app/revanced/cli/utils/DexReplacer.kt: (26, 38): Destructuring declaration initializer of type Map.Entry<String, ???> must have a 'component2()' function

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 55s
1 actionable task: 1 executed```
@Sculas
Copy link
Contributor

Sculas commented Apr 19, 2022

You are on the wrong branch of the Patcher (and presumably Patches too). Use the dalvik-patcher branch for now until the PR is merged.

@Sculas Sculas closed this as completed Apr 19, 2022
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

2 participants