Skip to content

Duplicate class compilation error on Android #945

@josmmv

Description

@josmmv

When using opentok-react-native@2.31.2, the Android build fails with 4 duplicate class errors.

Error

Compilation failed; see the compiler output below.

/node_modules/opentok-react-native/android/generated/java/com/facebook/react/viewmanagers/OTRNSubscriberManagerDelegate.java:18:
error: duplicate class: com.facebook.react.viewmanagers.OTRNSubscriberManagerDelegate

/node_modules/opentok-react-native/android/generated/java/com/facebook/react/viewmanagers/OTRNPublisherManagerInterface.java:16:
error: duplicate class: com.facebook.react.viewmanagers.OTRNPublisherManagerInterface

/node_modules/opentok-react-native/android/generated/java/com/facebook/react/viewmanagers/OTRNSubscriberManagerInterface.java:16:
error: duplicate class: com.facebook.react.viewmanagers.OTRNSubscriberManagerInterface

/node_modules/opentok-react-native/android/generated/java/com/facebook/react/viewmanagers/OTRNPublisherManagerDelegate.java:18:
error: duplicate class: com.facebook.react.viewmanagers.OTRNPublisherManagerDelegate

4 errors

Environment

Version
opentok-react-native 2.31.2 (broken) / 2.31.1 (works)
react-native 0.83.1 (I also tried with v0.84.1)
react 19.2.0
Platform Android
OS macOS

Workaround

Downgrading to 2.31.1 resolves this particular issue

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