hivemq / hivemq-mqtt-client

HiveMQ MQTT Client is an MQTT 5.0 and MQTT 3.1.1 compatible and feature-rich high-performance Java client library with different API flavours and backpressure support
https://hivemq.github.io/hivemq-mqtt-client/
Apache License 2.0
860 stars 159 forks source link

Update To Android Studio 4, mqttclient problems java.lang.NoClassDefFoundError #502

Closed acaliaro closed 3 years ago

acaliaro commented 3 years ago

Expected behavior

I have updated to AS4. Now when I debug the application, I have

java.lang.NoClassDefFoundError: com.hivemq.client.internal.mqtt.mqtt3.Mqtt3RxClientViewBuilder

With AS3.6 I have not this problem

Actual behavior

To Reproduce

Steps

Reproducer code

Details

acaliaro commented 3 years ago

488

SgtSilvio commented 3 years ago

@acaliaro the new 0.4.0 release of android-retrofix (https://github.com/SgtSilvio/android-retrofix/releases/tag/v0.4.0) should work with Android Gradle Plugin 4.x and 7.x Please comment if it works now.

acaliaro commented 3 years ago

it seems to work thanks @SgtSilvio