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.
> 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.