I want to use 'org.slf4j:slf4j-simple' on 'Android Studio Flamingo | 2022.2.1'.
in file 'app/build.gradle' / block 'dependencies', only add
implementation 'org.slf4j:slf4j-simple:2.0.13'
build error
> Task :app:mergeExtDexDebug FAILED
AGPBI: {"kind":"error","text":"java.lang.NullPointerException","sources":[{"file":"C:\\Users\\wanko\\.gradle\\caches\\modules-2\\files-2.1\\org.slf4j\\slf4j-simple\\2.0.13\\be11a3f05f7cf546524b07ad252719d840f4daed\\slf4j-simple-2.0.13.jar"}],"tool":"D8"}
AGPBI: {"kind":"error","text":"java.lang.NullPointerException","sources":[{"file":"C:\\Users\\wanko\\.gradle\\caches\\modules-2\\files-2.1\\org.slf4j\\slf4j-api\\2.0.13\\80229737f704b121a318bba5d5deacbcf395bc77\\slf4j-api-2.0.13.jar"}],"tool":"D8"}
> Task :app:processDebugManifestForPackage
> Task :app:mergeLibDexDebug
> Task :app:mergeDebugResources
> Task :app:mergeDebugJavaResource
> Task :app:processDebugResources
> Task :app:compileDebugJavaWithJavac
> Task :app:dexBuilderDebug
> Task :app:mergeProjectDexDebug
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 slf4j-simple-2.0.13.jar (org.slf4j:slf4j-simple:2.0.13) 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\wanko\.gradle\caches\modules-2\files-2.1\org.slf4j\slf4j-simple\2.0.13\be11a3f05f7cf546524b07ad252719d840f4daed\slf4j-simple-2.0.13.jar.
> Error while dexing.
> Failed to transform slf4j-api-2.0.13.jar (org.slf4j:slf4j-api:2.0.13) 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\wanko\.gradle\caches\modules-2\files-2.1\org.slf4j\slf4j-api\2.0.13\80229737f704b121a318bba5d5deacbcf395bc77\slf4j-api-2.0.13.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.
* Get more help at https://help.gradle.org
BUILD FAILED in 8s
30 actionable tasks: 30 executed
OK
implementation 'org.slf4j:slf4j-simple:2.0.9'
NG
implementation 'org.slf4j:slf4j-simple:2.0.10'
implementation 'org.slf4j:slf4j-simple:2.0.12'
implementation 'org.slf4j:slf4j-simple:2.0.13'
I want to use 'org.slf4j:slf4j-simple' on 'Android Studio Flamingo | 2022.2.1'.
in file 'app/build.gradle' / block 'dependencies', only add implementation 'org.slf4j:slf4j-simple:2.0.13'
build error
OK implementation 'org.slf4j:slf4j-simple:2.0.9'
NG implementation 'org.slf4j:slf4j-simple:2.0.10' implementation 'org.slf4j:slf4j-simple:2.0.12' implementation 'org.slf4j:slf4j-simple:2.0.13'