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

Failed to transform guice-5.1.0.jar (com.google.inject:guice:5.1.0) to match attributes #290

Open
Ahmed-Hamdy-911 opened this issue Mar 1, 2024 · 1 comment

Comments

@Ahmed-Hamdy-911
Copy link

Ahmed-Hamdy-911 commented Mar 1, 2024

help me please , I was working on a project to diagnose a disease and I used the tflite library to do this, but this problem started to appear, so how can it be solved?

ERROR:C:\Users\hp.gradle\caches\transforms-3\9e8d46caf4d48b7b054bf8aab959d37b\transformed\jetified-guice-5.1.0.jar: D8: com.android.tools.r8.internal.k2: MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O (--min-api 26)

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeExtDexDebug'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform guice-5.1.0.jar (com.google.inject:guice:5.1.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingWithClasspathTransform: C:\Users\hp.gradle\caches\transforms-3\9e8d46caf4d48b7b054bf8aab959d37b\transformed\jetified-guice-5.1.0.jar.
> Error while dexing.

@Ahmed-Hamdy-911 Ahmed-Hamdy-911 changed the title help me please , I was working on a project to diagnose a disease and I used the tflite library to do this, but this problem started to appear, so how can it be solved? Failed to transform guice-5.1.0.jar (com.google.inject:guice:5.1.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}. Mar 1, 2024
@Ahmed-Hamdy-911 Ahmed-Hamdy-911 changed the title Failed to transform guice-5.1.0.jar (com.google.inject:guice:5.1.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}. Failed to transform guice-5.1.0.jar (com.google.inject:guice:5.1.0) to match attributes Mar 1, 2024
@kapil708
Copy link

kapil708 commented Mar 7, 2024

Set minSdkVersion 26 will solve it

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