14-Alexandrite
September 7, 2024
Solved
Duplicate Class error - Android Java SDK
- September 7, 2024
- 1 reply
- 2721 views
Hello,
I have some difficulties trying to run android java sdk setam sensor sample.
1-Donwlod the java sdk from official website
2-Since the gradle version is 6.3 , I downloaded the compatible jdk (version 14)
3-Import the project from android studio
4-Configure gradle with my JDK (see pic1)
5-run .\gradlew assemble (see pic 2)
6- Output error (see pic 3 for full error):
Duplicate class ch.qos.logback.core.util.StatusPrinter found in modules logback-android-core-1.1.1-6.jar (com.github.tony19:logback-android-core:1.1.1-6) and logback-core-1.3.14.jar (ch.qos.logback:logback-core:1.3.14)
Duplicat....
I tried to fix on build.gradle file but it didn't work.
Some classes are declared twice in two different jar files...
I add my 'build.gradle'
Any ideas
Thank you.

