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

Library conflict with Web socket #407

Open
jahmad3534 opened this issue Jan 16, 2024 · 2 comments
Open

Library conflict with Web socket #407

jahmad3534 opened this issue Jan 16, 2024 · 2 comments

Comments

@jahmad3534
Copy link

Connect sdk and Web socket in the same project are causing Class Conflicts

Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable

Duplicate class org.java_websocket.AbstractWrappedByteChannel found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.SSLSocketChannel2 found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.SocketChannelIOHelper found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.WebSocket found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.WebSocket$READYSTATE found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.WebSocket$Role found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.WebSocketAdapter found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.WebSocketFactory found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.WebSocketImpl found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.WebSocketListener found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.WrappedByteChannel found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.client.AbstractClientProxyChannel found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.client.WebSocketClient found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.client.WebSocketClient$WebsocketWriteThread found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.drafts.Draft found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.drafts.Draft$CloseHandshakeType found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.drafts.Draft$HandshakeState found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.drafts.Draft_10 found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.drafts.Draft_10$IncompleteException found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.drafts.Draft_17 found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.drafts.Draft_75 found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.drafts.Draft_76 found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.exceptions.IncompleteHandshakeException found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.exceptions.InvalidDataException found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.exceptions.InvalidFrameException found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.exceptions.InvalidHandshakeException found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.exceptions.LimitExedeedException found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.exceptions.NotSendableException found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.exceptions.WebsocketNotConnectedException found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.framing.CloseFrame found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.framing.CloseFrameBuilder found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.framing.FrameBuilder found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.framing.Framedata found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.framing.Framedata$Opcode found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.framing.FramedataImpl1 found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.handshake.ClientHandshake found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.handshake.ClientHandshakeBuilder found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.handshake.HandshakeBuilder found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.handshake.HandshakeImpl1Client found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.handshake.HandshakeImpl1Server found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.handshake.Handshakedata found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.handshake.HandshakedataImpl1 found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.handshake.ServerHandshake found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.handshake.ServerHandshakeBuilder found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.server.DefaultSSLWebSocketServerFactory found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.server.DefaultWebSocketServerFactory found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.server.WebSocketServer found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.server.WebSocketServer$WebSocketServerFactory found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.server.WebSocketServer$WebSocketWorker found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.server.WebSocketServer$WebSocketWorker$1 found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.util.Base64 found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.util.Base64$1 found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.util.Base64$InputStream found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.util.Base64$OutputStream found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)
Duplicate class org.java_websocket.util.Charsetfunctions found in modules jetified-connect-sdk-android-1.6.0-runtime (com.connectsdk:connect-sdk-android:1.6.0) and jetified-java-websocket-1.3 (org.java-websocket:java-websocket:1.3.3)

@vasuka-hk
Copy link

vasuka-hk commented Jan 16, 2024

Can you provide your gradle of app level and connect sdk.

@jahmad3534
Copy link
Author

Resolved it by adding following in my app level build
configurations {
all*.exclude module: 'java-websocket'
}

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

2 participants