paho.mqtt.android
paho.mqtt.android copied to clipboard
java.lang.IllegalArgumentException Invalid ClientHandle
App Catsh
>My App crashed, and I couldn't catch the exception with try catch. The following two libraries were used
- api 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
- api 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1' Logs java.lang.IllegalArgumentException Invalid ClientHandle 1 org.eclipse.paho.android.service.MqttService.getConnection(MqttService.java:588) 2 org.eclipse.paho.android.service.MqttService.connect(MqttService.java:328) 3 org.eclipse.paho.android.service.MqttAndroidClient.doConnect(MqttAndroidClient.java:467) 4 org.eclipse.paho.android.service.MqttAndroidClient.access$200(MqttAndroidClient.java:76) 5 org.eclipse.paho.android.service.MqttAndroidClient$1.run(MqttAndroidClient.java:435) 6 java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187) 7 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152) 8 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 9 java.lang.Thread.run(Thread.java:929)
相同的问题,解决了吗
Hey!. I resol issue with
implementation('org.eclipse.paho:org.eclipse.paho.android.service:1.1.1') {
exclude module: 'support-v4'
transitive = true
}
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0'
You try this !!