Studio Build: 4.3.1, 4.2.0 Beta06, 4.3.0 Alpha 11
Version of Gradle Plugin: 4.3.1, 4.2.0-beta06, 7.0.0-alpha11
Version of Gradle: 6.8.3
Version of Java: Java 8, and then Java 15
OS: Mac OS 11.2.3
I have tried all possible ways to tackle this issue.
And I’ve looked at any previous issues, resolutions, stackoverflow advises, you name it.
Here are all the cases I’ve tried, no success whatsoever:
- https://stackoverflow.com/questions/66439933/classes-jar-already-contains-entry-meta-inf-module-name-debug-kotlin-module
- https://discuss.kotlinlang.org/t/running-into-issue-with-entry-name-meta-inf-module-build-type-kotlin-module-collided/19690
- https://github.com/Kotlin/kotlinx.coroutines/issues/1064#issuecomment-742172419
I’ve tried below, and then replaced with pickFirst(), still an issue:
packagingOptions {
exclude "META-INF/*.kotlin_module"
exclude "META-INF/rxkotlin.properties"
exclude "META-INF/rxkotlin_main.kotlin_module"
exclude "META-INF/kotlinx-io.kotlin_module"
exclude "META-INF/atomicfu.kotlin_module"
exclude "META-INF/kotlinx-coroutines-io.kotlin_module"
exclude "META-INF/rxkotlin.properties"
exclude "META-INF/rxkotlin_main.kotlin_module"
}
Here is a link of the dummy github project. Please open /test_app
folder in Android Studio.
Sync and clean project resolves the issue randomly on the provided simple example. But then after restarting and repeating the steps above, it will start happening again.
This issue happens constantly on more complex projects.
When you open the sample for the first time, it will most likely work.
Please close it at least once, and after opening, make sure you:
- Sync project with Gradle files
- Build > Clean project
In the 2nd or 3rd attempt after restarting the project, you will start seeing the error when trying to compile.
And from there onward, every compilation fails. Cleaning, restarting, wiped .gradle
cache, even under my mac folder.
Still happily failing.
I have opened an issue:
But this is a critical problem for our team, hence I am trying to expand possible ideas how to deal with this problem.
Right now we are stuck.