You have used multiple iot dependencies. Why are their versions inconsistent? This might be a problem caused by Maven dependency conflicts. Try using the same version of iot dependencies. You can refer to the following link for more information: azure-iot-sdk-java