Duplicate class and grdle build failed
Hi there. I'm a young developer and I've struggled with this problem for so long! I really want to finish this project but cant, because I cant build and run the project to my android. I've tried just about everything and will really appreciate it if someone can help me with this error please.
CommandInvokationFailure: Gradle build failed. C:\Program Files\Java\jdk1.8.0_77\bin\java.exe -classpath "C:\gradle\gradle-6.9.1\lib\gradle-launcher-6.9.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[ Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
1 exception was raised by workers:
java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules com.google.guava.listenablefuture-1.0.jar (com.google.guava.listenablefuture-1.0.jar) and guava-30.1-jre.jar (guava-30.1-jre.jar) Duplicate class com.sun.jna.AltCallingConvention found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.Callback found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.Callback$UncaughtExceptionHandler found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.CallbackParameterContext found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.CallbackProxy found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.CallbackReference found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.CallbackReference$AttachOptions found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.CallbackReference$DefaultCallbackProxy found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.CallbackReference$NativeFunctionHandler found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.CallbackResultContext found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.CallbackThreadInitializer found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.DefaultTypeMapper found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.DefaultTypeMapper$Entry found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.ELFAnalyser found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.ELFAnalyser$1 found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.ELFAnalyser$ArmAeabiAttributesTag found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.ELFAnalyser$ArmAeabiAttributesTag$ParameterType found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.ELFAnalyser$ELFSectionHeaderEntry found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.ELFAnalyser$ELFSectionHeaders found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.FromNativeContext found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.FromNativeConverter found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.Function found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.Function$NativeMappedArray found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.Function$PointerArray found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.Function$PostCallRead found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.FunctionMapper found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.FunctionParameterContext found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.FunctionResultContext found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.IntegerType found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.InvocationMapper found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.JNIEnv found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.Klass found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.LastErrorException found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.Library found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.Library$Handler found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.Library$Handler$FunctionInfo found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Duplicate class com.sun.jna.Memory found in modules intellij-core-all.jar (intellij-core-all.jar) and jna-5.6.0.jar (jna-5.6.0.jar) Tanks much appreciated.
Your answer
Follow this Question
Related Questions
When I build my game there are things that are missing or not right 0 Answers
how can i fix building game? 1 Answer
Game Build instantly getting stack overflow on first scene [Fixed] 1 Answer
Failed to build apk.,Failed to build apk... 0 Answers
Can't "build and run". Can only use the "build "option 0 Answers