Skip to content

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

Description

@dyguests

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions