flutter_tflite icon indicating copy to clipboard operation
flutter_tflite copied to clipboard

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

Open Ahmed-Hamdy-911 opened this issue 11 months ago • 1 comments

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 avatar Mar 01 '24 13:03 Ahmed-Hamdy-911

Set minSdkVersion 26 will solve it

kapil708 avatar Mar 07 '24 09:03 kapil708