'KotlinMultiplatform Cannot access 'kotlin.Cloneable'

How can I use the "Mac" encryption class in the shared Kotlin Multiplatform module? When I try this I see the error "Cannot access 'kotlin.Cloneable' which is a supertype of 'javax.crypto.Mac'. Check your module classpath for missing or conflicting dependencies"

enter image description here

If you know another way to encrypt the string with the "HmacSHA512" algorithm using the key I would be very happy to see your way!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source