-
Notifications
You must be signed in to change notification settings - Fork 1.9k
duplicate entry: META-INF/atomicfu.kotlin_module #1064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@SUPERCILEX , i have tried with
and it is not working too ! |
that worked with me. |
@kherlopian2 , for me still not working. I mean it's OK in Debug build, but not in release |
@kherlopian2 Nope, not working. 😢 @eakteam Are you using dynamic feature feature modules or instant apps? |
@SUPERCILEX , Yes i am using Dynamic Feature Modules and this packaging options rules i have added in every build.gradle |
Neat, so that's gotta be the bug somehow! I want to hear @qwwdfsad's thoughts, but then I'll file an issue if it's really Google's fault. |
@SUPERCILEX , sure that this is a minor bug and for sure it will be solved, but @qwwdfsad i think its not his fault and maybe it is related really to Android Build Tollchain. I have opened a bug for this in 26 March and they have reviewed it : https://issuetracker.google.com/issues/129323351 I am using latest Android Studio 3.5 Canary 9. @SUPERCILEX what Android Studio version do you use ? I mean this is happening in every version since latest coroutine release or only to 3.5 canary 9 version ? |
Dope. And I've tried going back to alpha 6 I think. Still broken so it was definitely introduced by coroutines. Still seems like a tooling bug though. 🤷♂️ |
@SUPERCILEX , i understand , thanks for saving time not leaving me to downgrade too :D :D ... It will be fixed don't worry, it is just a very minor issue. I downgrade to 1.1.1 of coroutines but needed to fix this just for curiosity to test how the new version works .... And some bug are normal, it is just Alpha version. |
@SUPERCILEX , thanks for providing Google with open source project, it is really important and they will solve this for sure in this way. I can't share mine because is Close Source, so thank you for supporting ! |
@SUPERCILEX , i have solved id by adding this in my app gradle file
|
Same problem with version 1.2.0-alpha on my side.
And here's a permalink to a reproducing project: https://github.com/LouisCAD/Splitties/tree/e2389213a82aa91ca4ecf4a05fc67438e7c5ffd0 Also, as android {
...
packagingOptions {
pickFirst("META-INF/atomicfu.kotlin_module")
}
...
} |
@eakteam doesn't that break things at runtime though? |
@SUPERCILEX , No, for me everything is running OK. There are 2 modules in group Remember to exclude only |
Thanks for the reproducer and possible workarounds! This issue will be solved in 1.3.40 on the compiler side: https://youtrack.jetbrains.com/issue/KT-30344 I will leave the issue open for a while to make it easier for users to find a workaround. |
If you're using Gradle you can specify |
I don't understand why this is not solved yet in |
The problem is not in this library
…On Thu, Apr 4, 2019 at 1:00 PM Emin Kokalari ***@***.***> wrote:
I don't understand why this is not solved yet in alpha-2 but we should
use still the workaround ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1064 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEEERzQ0rP37b42B5isGcijKA54IHxuks5vdi-8gaJpZM4cUGtN>
.
|
Hmmmm, but this can contains in the aar the workaround to simplify things for new users, than after it is finally solved can edit back ... Anyway just my thoughts. |
Can confirm this worked for me^. |
This issue is still happening with latest |
It was told before that it is not the library issue and that on Kotlin side it will be fixed in 1.3.40 and in AS 3.5 Canary 12. |
@qwwdfsad , sorry i have missed that comment 😊. |
It looks that is a side-effect of leaked atomicfu dependency. |
that worked with me (kotlin 1.3.30 + coroutines1.2.0) too, thanks. |
@elizarov @qwwdfsad After upgrading to kotlin-v1.3.31 & coroutine-1.2.1, the leak of "atomicfu.kotlin_module" is fixed, but the leak of "kotlinx-coroutines-core.kotlin_module" is still there Reproduce git clone https://github.com/Sunbreak/notepad-sdk-mpp
cd androidSample && ./gradlew assembleDebug |
By adding below line resolve issue
|
that worked for me |
You could try |
I still have to put |
Do you have the same error |
Still an issue for me in multiplatform project during project build, caused by this line:
Message is AS ver. 3.5.2 Workaround with packagingOptions doesn't work, probably packagingOptions are related to Android part, while this is a common one. |
@mirokolodii Did you manage to solve it? |
@linean Yes, issue was indeed fixed by
|
hello @mirokolodii , I have the same problem in my kotlin multiplatform project, so, we can only solve the problem by adding endless pickFirst statement in packagingOptions block? Any better way? |
@qwwdfsad No, I don't. |
No idea to be honest. I expect they will fix it eventually, but for now I've just added those things and forgot about them. |
See the recent problem with |
I'm getting this error while generating signed debug apk:
Anyone have possible solution for it. @elizarov ? |
@AliAzaz This is not related to kotlinx.coroutines, and the solution is already in the comments here ( This is a bug in AGP (the Android Gradle Plugin), that is fixed since its version 7.0.0-alpha01, so you can upgrade from version 4.x if you are ready to test the next AGP and Android Studio 2020.3.1 early. |
This worked for my project for the same error.
|
I've tried this and it doesn't work. I'm a bit stuck. 😢
The text was updated successfully, but these errors were encountered: