Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Duplicate Some of Classes in FBJNI Library  #1813

@ghost

Description

🐛 Bug Report

Both com.facebook.flipper:flipper, com.facebook.spectrum use fbjni library, but spectrum include fbjin in library(not imple dependency)

To Reproduce

  1. Add depedencies
    com.facebook.flipper:flipper
    com.facebook.spectrum
  2. Sync and Build
  3. Get this Error Message
Duplicate class com.facebook.fbjni.BuildConfig found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.CppException found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.CppSystemErrorException found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.DestructorThread found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.DestructorThread$1 found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.DestructorThread$Destructor found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.DestructorThread$DestructorList found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.DestructorThread$DestructorStack found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.DestructorThread$Terminus found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.HybridClassBase found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.HybridData found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.HybridData$Destructor found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.IteratorHelper found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.MapIteratorHelper found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.NativeRunnable found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.ThreadScopeSupport found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.UnknownCppException found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)
Duplicate class com.facebook.jni.annotations.DoNotStrip found in modules jetified-fbjni-0.2.0-runtime.jar (com.facebook.fbjni:fbjni:0.2.0) and jetified-spectrum-fbjni-1.2.0-runtime.jar (com.facebook.spectrum:spectrum-fbjni:1.2.0)

Go to the documentation to learn how to Fix dependency resolution errors.

Environment

implementation "com.facebook.flipper:flipper:0.81.0"
implementation "com.facebook.soloader:soloader:0.10.1"
implementation "com.facebook.spectrum:spectrum-default:1.2.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions