I have this error, but cannot find the lifecycle library in my project. Also cannot find it on googl...
g
I have this error, but cannot find the lifecycle library in my project. Also cannot find it on google. Anyone has an idea on how to fix it? Already removed gradle folder, but error is getting back.
Copy code
> Task :app:mergeExtDexDebug FAILED
AGPBI: {"kind":"error","text":"java.lang.NullPointerException: Cannot invoke \"String.length()\" because \"<parameter1>\" is null","sources":[{"file":"/Users/geert/.gradle/caches/transforms-3/0ab13f267927bee891d1a2585b611b55/transformed/lifecycle-livedata-core-2.8.0-alpha04-runtime.jar"}],"tool":"D8"}

Execution failed for task ':app:mergeExtDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform lifecycle-livedata-core-2.8.0-alpha04.aar (androidx.lifecycle:lifecycle-livedata-core:2.8.0-alpha04) 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=24, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingNoClasspathTransform: /Users/geert/.gradle/caches/transforms-3/0ab13f267927bee891d1a2585b611b55/transformed/lifecycle-livedata-core-2.8.0-alpha04-runtime.jar.
         > Error while dexing.

* 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.
t
Error while dexing.
it is not resolve, but actual dexing error. You should check logs for the cause
h
@Geert i am encounter same issue do you have any idea how can we fix this
1973 Views