gpt4 book ai didi

android - Kaazing 网络套接字

转载 作者:行者123 更新时间:2023-11-30 02:30:41 24 4
gpt4 key购买 nike

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 和演示 Activity

我在依赖项中设置了 jars

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());
}
}

最佳答案

以下是我们遵循并执行的步骤:

  1. 已下载 Android Studio 1.0
  2. 从 Kaazing 网站下载了 JMS 4.0.6
  3. 使用过导入非Android Studio项目

Import non-android studio project

  1. 指向[GATEWAY_HOME]/demo/android/src/jms
  2. 在设备上运行应用

关于android - Kaazing 网络套接字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27383400/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com