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

Duplicate class error Android #4

Open
boedy opened this issue May 3, 2022 · 0 comments
Open

Duplicate class error Android #4

boedy opened this issue May 3, 2022 · 0 comments

Comments

@boedy
Copy link

boedy commented May 3, 2022

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)
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