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 和演示活动

我在依赖项中设置了罐子

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

1

以下是我们遵循和工作的步骤:

  1. 已下载 Android Studio 1.0
  2. 从 Kaazing 网站下载 JMS 4.0.6
  3. 使用Import Non-Android Studio项目

导入非android studio项目

  1. 指向[GATEWAY_HOME]/demo/android/src/jms
  2. 在设备上运行应用程序
于 2014-12-12T18:21:25.240 回答