1
EXCEPTION: java.lang.ClassNotFoundException: Didn't find class "com.kaazing.net.ws.impl.DefaultWebSocketFactory" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/vendor/lib, /data/cust/lib, /system/lib, /data/datalib]]

Android Studio とデモ アクティビティの使用

依存関係にjarを設定しています

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.google.android.gms:play-services:+'
    provided files('libs/com.kaazing.gateway.client.android.jar')
    provided files('libs/com.kaazing.gateway.jms.client.android.jar')
    provided files('libs/geronimo-jms_1.1_spec.jar')

}

--

 if (connectionFactory == null) {
            try {
-------->       connectionFactory = JmsConnectionFactory.createConnectionFactory();
                WebSocketFactory webSocketFactory = connectionFactory.getWebSocketFactory();
                webSocketFactory.setDefaultChallengeHandler(createChallengehandler());
            } catch (JMSException e) {
                e.printStackTrace();
                logMessage("EXCEPTION: " + e.getMessage());
            }
        }
4

1 に答える 1