Skip to content

Duplicate class error Android #4

@boedy

Description

@boedy

Tried installing this package for android, but getting the following error when building the project using a fresh react native app

> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
   > Duplicate class org.java_websocket.AbstractWebSocket found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.AbstractWebSocket$1 found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.AbstractWrappedByteChannel found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.SSLSocketChannel found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.SSLSocketChannel$1 found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.SSLSocketChannel2 found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.SocketChannelIOHelper found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.WebSocket found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.WebSocketAdapter found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.WebSocketFactory found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.WebSocketImpl found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.WebSocketListener found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.WebSocketServerFactory found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.WrappedByteChannel found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.client.WebSocketClient found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.client.WebSocketClient$1 found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)
     Duplicate class org.java_websocket.client.WebSocketClient$WebsocketWriteThread found in modules jetified-Connect-SDK-Android-Lite--SNAPSHOT-runtime (com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT:b25566a3c1-1) and jetified-Java-WebSocket-1.5.2 (org.java-websocket:Java-WebSocket:1.5.2)

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