New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on Android 5 (API 21) #2
Comments
You have to set: android {
...
compileOptions {
// enables lambdas, method references, default methods, static interface methods
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
...
} |
I had.
app:
data:
|
Did you add dependencies {
...
implementation 'net.sourceforge.streamsupport:android-retrostreams:1.7.1'
implementation 'net.sourceforge.streamsupport:android-retrofuture:1.7.1'
} to your app project? |
yes, I updated the comment ^ |
The error is caused because the classes of the hivemq-mqtt-client dependency are not backported at all. |
Now it works! Thank you! |
I added
apply plugin: 'com.github.sgtsilvio.gradle.android-retrofix'
in my project but if I try to connect via MQTT on Android 5 the app crashes with this error:The text was updated successfully, but these errors were encountered: