-
Notifications
You must be signed in to change notification settings - Fork 158
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
AGP 8.0 java.lang.NoClassDefFoundError: ExternalSyntheticLambda2 #571
Comments
@SgtSilvio Can you please help me? Its blocking! |
Please share more information like minSdkVersion and Android version of your test device. |
@SgtSilvio Updated the comment
|
Can you share your build file. |
@SgtSilvio I have configured everything as in https://hivemq.github.io/hivemq-mqtt-client/docs/installation/android/ project/library build.gradle
project/app build.gradle
project/build.gradle
|
This line in your project/build.gradle means that you are using 0.4.1 of android-retrofix, and not 0.5.0. Please try to update the version. |
@SgtSilvio I tried but getting new error and its not connecting
|
@SgtSilvio I think the root cause is this error. Its not able to connect to the broker |
Get the same error as rohit5ram. Log:
Fixed, just forget to change this: implementation 'net.sourceforge.streamsupport:android-retrostreams:1.7.4'
implementation 'net.sourceforge.streamsupport:android-retrofuture:1.7.4' to retrofix('net.sourceforge.streamsupport:android-retrostreams:1.7.4')
retrofix('net.sourceforge.streamsupport:android-retrofuture:1.7.4') |
@SgtSilvio I still face the issue. I cannot upgrade to AGP 8.0 anymore. Can you please help?
|
@SgtSilvio Finally it worked with below Proguard rules!
|
Platform: Android 19
build.gradle:
minSdkVersion : 19
compileSdkVersion = 33
targetSdkVersion = 33
buildToolsVersion = '33.0.1'
Retrofix :
classpath 'com.github.sgtsilvio.gradle:android-retrofix:0.5.0'
implementation "net.sourceforge.streamsupport:android-retrostreams:1.7.4"
implementation "net.sourceforge.streamsupport:android-retrofuture:1.7.4"
hivemq : implementation "com.hivemq:hivemq-mqtt-client-websocket:1.3.1"
Application is crashing after upgrading to Android Gradle Plugin from 7.4 to 8.0
`Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttClientTransportConfigImplBuilder$$ExternalSyntheticLambda1>
18:12:54.480 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttClientTransportConfigImplBuilder$$ExternalSyntheticLambda1>
18:12:54.484 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttClientTransportConfigImplBuilder$$ExternalSyntheticLambda2>
18:12:54.484 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttClientTransportConfigImplBuilder$$ExternalSyntheticLambda2>
18:12:54.485 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttClientTransportConfigImplBuilder$$ExternalSyntheticLambda0>
18:12:54.486 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttClientTransportConfigImplBuilder$$ExternalSyntheticLambda0>
18:12:54.498 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClientBuilderBase$$ExternalSyntheticLambda2>
18:12:54.498 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClientBuilderBase$$ExternalSyntheticLambda2>
18:12:54.501 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClientBuilderBase$$ExternalSyntheticLambda0>
18:12:54.501 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClientBuilderBase$$ExternalSyntheticLambda0>
18:12:54.502 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClientBuilderBase$$ExternalSyntheticLambda1>
18:12:54.504 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClientBuilderBase$$ExternalSyntheticLambda1>
18:12:54.530 I Rejecting re-init on previously-failed class java.lang.Class<io.netty.util.internal.LongAdderCounter>
18:12:54.530 I Rejecting re-init on previously-failed class java.lang.Class<io.netty.util.internal.LongAdderCounter>
18:12:54.579 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClientBuilder$$ExternalSyntheticLambda0>
18:12:54.579 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClientBuilder$$ExternalSyntheticLambda0>
18:12:54.581 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClientBuilder$$ExternalSyntheticLambda1>
18:12:54.581 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClientBuilder$$ExternalSyntheticLambda1>
18:12:54.583 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClientBuilder$$ExternalSyntheticLambda2>
18:12:54.583 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClientBuilder$$ExternalSyntheticLambda2>
18:12:54.592 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClient$$ExternalSyntheticLambda3>
18:12:54.592 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClient$$ExternalSyntheticLambda3>
18:12:54.594 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClient$$ExternalSyntheticLambda2>
18:12:54.595 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClient$$ExternalSyntheticLambda2>
18:12:54.606 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClient$$ExternalSyntheticLambda4>
18:12:54.606 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClient$$ExternalSyntheticLambda4>
18:12:54.607 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClient$$ExternalSyntheticLambda1>
18:12:54.607 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClient$$ExternalSyntheticLambda1>
18:12:54.608 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClient$$ExternalSyntheticLambda5>
18:12:54.608 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttRxClient$$ExternalSyntheticLambda5>
18:12:54.614 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.util.collections.ImmutableElement$ElementSpliterator>
18:12:54.614 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.util.collections.ImmutableElement$ElementSpliterator>
18:12:54.627 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttAsyncClient$$ExternalSyntheticLambda5>
18:12:54.627 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttAsyncClient$$ExternalSyntheticLambda5>
18:12:54.629 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttAsyncClient$$ExternalSyntheticLambda3>
18:12:54.629 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttAsyncClient$$ExternalSyntheticLambda3>
18:12:54.630 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttAsyncClient$$ExternalSyntheticLambda1>
18:12:54.631 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttAsyncClient$$ExternalSyntheticLambda1>
18:12:54.636 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttAsyncClient$$ExternalSyntheticLambda0>
18:12:54.637 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.MqttAsyncClient$$ExternalSyntheticLambda0>
18:12:54.639 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.message.subscribe.MqttSubscriptionBuilder$$ExternalSyntheticLambda0>
18:12:54.639 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.message.subscribe.MqttSubscriptionBuilder$$ExternalSyntheticLambda0>
18:12:54.641 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.message.subscribe.MqttSubscribeBuilder$$ExternalSyntheticLambda2>
18:12:54.641 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.message.subscribe.MqttSubscribeBuilder$$ExternalSyntheticLambda2>
18:12:54.642 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.message.subscribe.MqttSubscribeBuilder$$ExternalSyntheticLambda3>
18:12:54.642 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.message.subscribe.MqttSubscribeBuilder$$ExternalSyntheticLambda3>
18:12:54.643 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.message.subscribe.MqttSubscribeBuilder$$ExternalSyntheticLambda3>
18:12:54.643 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.message.subscribe.MqttSubscribeBuilder$$ExternalSyntheticLambda1>
18:12:54.644 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.message.subscribe.MqttSubscribeBuilder$$ExternalSyntheticLambda1>
18:12:54.645 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.message.subscribe.MqttSubscribeBuilder$$ExternalSyntheticLambda0>
18:12:54.645 I Rejecting re-init on previously-failed class java.lang.Class<com.hivemq.client.internal.mqtt.message.subscribe.MqttSubscribeBuilder$$ExternalSyntheticLambda0>
18:12:54.648 I Rejecting re-init on previously-failed class
The text was updated successfully, but these errors were encountered: