gaikwadChetan93 / Android-MQTT-Demo

An android application to demonstrate the complete MQTT lifecycle.
31 stars 21 forks source link

java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/content/LocalBroadcastManager; #1

Open Rohitsachdeva opened 3 years ago

Rohitsachdeva commented 3 years ago

this error is coming when user trying to connect with MqttAndroidClient

        IMqttToken token = client.connect();
gaikwadChetan93 commented 3 years ago

@Rohitsachdeva Have you tried the updated code? I have added support for AndroidX.

sunilitechnotion commented 2 years ago

For AndroidX please add the below line in gradle.properties file

android.enableJetifier=true

Keith-Brian commented 1 year ago

If using android X, In the gradle.properties file add the following line of code

android.enableJetifier=true

Rohitsachdeva commented 1 year ago

Sorry, I think I replaced whole code, I have have updated all packages from paho

wycliff commented 11 months ago

android.enableJetifier=true works, thanks.