CommandInvokationFailure: Gradle build failed.
C:\Program Files\Java\jdk1.8.0_191\bin\java.exe -classpath "C:\Program Files\Unity Hub\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.6.4.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleDebug"
stderr[
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launcher:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class bitter.jnibridge.JNIBridge found in modules opsdk-debug-runtime.jar (:opsdk-debug:) and unity-classes.jar (unity-classes.jar)
Duplicate class bitter.jnibridge.JNIBridge$a found in modules opsdk-debug-runtime.jar (:opsdk-debug:) and unity-classes.jar (unity-classes.jar)
Duplicate class com.unity3d.player.GoogleARCoreApi found in modules opsdk-debug-runtime.jar (:opsdk-debug:) and unity-classes.jar (unity-classes.jar)
Read More:
- [actual record of Android stepping on the pit] Android studio reports an error invalid gradle JDK configuration found after importing the project
- The mapboxsdk imports the higher version unity2020 and 2021 and reports an error arbackgroundrenderer
- Asset database transaction committed tweet appears when unity reports an error!
- Lamdba in the studio part reports an error. Observe lamdba reports an error but can run
- After unity connects with androidstudio, unity packages APK with an error: commandinvocationfailure: failed to re package resources
- Android Studio cannot create a new activity and reports ide internal error occurred
- Unity reports an error cs0619: ‘guitexture’ is obsolete
- Unit Android converts c# class to JSON file and reports an error
- Android network request framework okhttputils reports an error (okhttp3 cannot be found)
- [unity] Android package error java.lang.ClassNotFoundException Did not find class com.unity3d . player.MainActivity
- Unity Android packaging error “UnityEditor.BuildPlayerWindow+BuildMethodException” solution record
- Notes on unity project_ Unity webplayer failed to update unity web player
- How to Solve Unity Package Android Project Error
- [OpenGL · error] visual studio 2019 reports an error. It is an external symbol gladloadglloader that cannot be parsed. This symbol is referenced in the function main
- Android Studio Series: after Android studio is opened, the project window will not be displayed.
- Android Studio – add configuration for Android studio
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Android stdio reports an error: “XXX keeps stopping” solution
- Error in Cordova project execution command after Android studio upgrade: could not find gradle wrapper within Android SDK