Skip to content
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

How to exlcude "org.jetbrains.kotlin:kotlin-stdlib" #419

Open
dyguests opened this issue Dec 13, 2023 · 2 comments
Open

How to exlcude "org.jetbrains.kotlin:kotlin-stdlib" #419

dyguests opened this issue Dec 13, 2023 · 2 comments

Comments

@dyguests
Copy link

dyguests commented Dec 13, 2023

Describe the issue

I got a android project with kotlin.

I use fat-aar to export aars. Then I want dependency the aars for a other project(Unity -> Android), it failed:

log

   > Duplicate class kotlin.ArrayIntrinsicsKt found 
in 
modules Module_Plugin_Facebook-release-runtime (:Module_Plugin_Facebook-release:)  //my custom module
and 
kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0)

It seems that "org.jetbrains.kotlin:kotlin-stdlib:1.8.0" is not dependency by implementation xxx, bu it dependency by plugins{ id 'org.jetbrains.kotlin.android' }

So, How to exclude it?

Build Environment

  • Operating System: MacOS
  • Gradle Plugin Version: 7.1.2
  • Gradle Version: 7.2
  • Fat-aar Version: 1.3.8 (com.github.aasitnikov:fat-aar-android:b2a038763c)
@dyguests
Copy link
Author

fixed: Don‘t use

fataar {
    transitive = true
}

Just embed manually.

@dyguests
Copy link
Author

'embed manually' takes to much time, Is that possible to use transitive = true?

@dyguests dyguests reopened this Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant