I'm struggling to fix the problem that Android Studio
Unable to create debug or signed apk
.
Task :app:multiDexListDebug FAILED
Task :app:multiDexListDebug in app Finished
:app:multiDexListDebug (Thread[Daemon worker Thread 2,5,main]) completed. Took 2.62 secs.
AAPT2 aapt2-3.5.2-5435860-linux Daemon #0: shutdown
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:multiDexListDebug'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Error while merging dex archives:
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: kotlin.StandardKt__SynchronizedKt
Scenario tried:
- enabled
multidex
true - added dependency
Multidex 2.0.1
(android x) - cleaning and rebuild project
- excluding
org.jetbrains.kotlin
from the major projects. - tried using
api
&runtimeOnly