com.hivemq:hivemq-mqtt-client:1.2.1

Hi all, I am facing a problem I cannot resolve. I try to import the hiveMQ library to the one android project (using android visual studio) but when I import it has an error like this.
“5 files found with path ‘META-INF/INDEX.LIST’.
Adding a packaging options block may help, please refer to

for more information”
how can I solve this problem? I hope I can get help from you. thank you.

build.gradle : app add below inside android{} will resolve

packagingOptions {
resources {
resources.excludes.add(“/META-INF/{AL2.0,LGPL2.1}”)
resources.excludes.add(“META-INF/LICENSE.md”)
resources.excludes.add(“META-INF/LICENSE-notice.md”)
resources.excludes.add(“META-INF/INDEX.LIST”)
resources.excludes.add(“META-INF/*.properties”)
}
}

1 Like