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 和演示活动
我在依赖项中设置了罐子
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());
}
}