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