Comments (6)
Please replace
implementation 'com.hivemq:hivemq-mqtt-client-websocket:1.3.3'
with
implementation(platform('com.hivemq:hivemq-mqtt-client-websocket:1.3.3'))
from hivemq-mqtt-client.
I got the same error after upgrading agp from 8.1.4 to 8.2.x.
from hivemq-mqtt-client.
Any update on this issue? This makes AGP 8.2+ unusable on MQTT projects, and AGP 8.3 is already out for new AS Iguana!
If anyone has a workaround for this, please share it here!
from hivemq-mqtt-client.
I don't have this issue. I'm using com.hivemq:hivemq-mqtt-client-websocket:1.3.3
in an Android library project. AGP 8.3.0, Gradle 8.6.
from hivemq-mqtt-client.
In my empty app project, as in my first post, using AGP 8.3 with Gradle 8.4 or 8.6 does not help. Errors are the same:
FAILURE: Build completed with 12 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not resolve com.hivemq:hivemq-mqtt-client-websocket:1.3.3.
Required by:
project :app
> No matching variant of com.hivemq:hivemq-mqtt-client-websocket:1.3.3 was found. The consumer was configured to find a library for use during runtime, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.3.0', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- Variant 'apiElements' capability com.hivemq:hivemq-mqtt-client-websocket:1.3.3:
- Incompatible because this component declares a platform for use during compile-time and the consumer needed a library for use during runtime
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '8.3.0')
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'enforcedApiElements' capability com.hivemq:hivemq-mqtt-client-websocket-derived-enforced-platform:1.3.3:
- Incompatible because this component declares an enforced platform for use during compile-time and the consumer needed a library for use during runtime
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '8.3.0')
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'enforcedRuntimeElements' capability com.hivemq:hivemq-mqtt-client-websocket-derived-enforced-platform:1.3.3 declares a component for use during runtime:
- Incompatible because this component declares an enforced platform and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '8.3.0')
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'runtimeElements' capability com.hivemq:hivemq-mqtt-client-websocket:1.3.3 declares a component for use during runtime:
- Incompatible because this component declares a platform and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '8.3.0')
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================
Gradle 8.6 just additionally points out to the docs for variant selection errors and some possible reasons: https://docs.gradle.org/8.6/userguide/variant_model.html#sub:variant-no-match
Try:
> Review the variant matching algorithm at https://docs.gradle.org/8.6/userguide/variant_attributes.html#sec:abm_algorithm.
> No matching variant errors are explained in more detail at https://docs.gradle.org/8.6/userguide/variant_model.html#sub:variant-no-match.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================
from hivemq-mqtt-client.
@SgtSilvio that's it, thank you! My bad for not checking the repo README.
from hivemq-mqtt-client.
Related Issues (20)
- MqttAsyncClient sometimes blocking indefinitely on publish HOT 1
- Add documentation on manual message acknowledgement HOT 1
- Make Reconnect Failure Behavior Configurable
- Improve PINGREQ <--> PINGRESP reliability during network change
- Clarify & Improve Exception Handling & Behaviour in Callbacks
- Uses cases for below HiveMQ success codes HOT 3
- Capture WSS with Proxyman
- Manual Acknowledgement doesn't work HOT 6
- Slow Initial Data Transmission Issue in MQTT Client HOT 5
- $share/group/pubq HOT 4
- Mqtt5DisconnectException: Exception while decoding PUBLISH: topic alias must not exceed topic alias maximum HOT 2
- The field `responseTopic` of the class `Mqtt5Publish` returns the fulfilled optional with value `null`
- Async Mqtt3Client does not release threads created by publishes() when disconnected HOT 13
- Can not connect to HiveMQ WebSocket Client HOT 2
- DNS over HTTPS On Android HOT 1
- Unexpected behaviour when subscribing to same topic regular and $shared
- Intellij IDEA: at runDistributable any attempt to connect invokes NoClassDefFoundError sun/misc/Unsafe
- Question. about user properties on automatic reconnect... HOT 3
- Subscriber message,CONNECT failed as CONNACK contained an Error Code: BAD_USER_NAME_OR_PASSWORD HOT 1
- How to see the full error returned from the broker? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hivemq-mqtt-client.