I am a beginner game developer and I want to upload my game to unity. Unfortunately, when I try to build my project in unity as an Android build, it gives me a few errors. Here is the first error:
"CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Hub\Editor\2020.2.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2020.2.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.6.4.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"
stderr[
An exception has occurred in the compiler (1.8.0-adoptopenjdk). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: annotationType(): unrecognized Attribute name MODULE (class com.sun.tools.javac.util.UnsharedNameTable$NameImpl)
at com.sun.tools.javac.util.Assert.error(Assert.java:133)
[+ a bunch of other ones. this is the same body of text as the one i sent before]
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':unityLibrary:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org"
and here is the second:
"Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
> Configure project :launcher
WARNING: The option 'android.enableR8' is deprecated and should not be used anymore.
It will be removed in a future version of the Android Gradle plugin, and will no longer allow you to disable R8.
> Task :launcher:preBuild UP-TO-DATE
[+ a bunch of other tasks]
aapt2.exe W 08-03 19:02:39 10328 12580 LoadedArsc.cpp:657] Unknown chunk type '200'.
aapt2.exe W 08-03 19:02:41 6844 1820 LoadedArsc.cpp:657] Unknown chunk type '200'.
> Task :launcher:processReleaseResources
[+ a bunch of other tasks]
> Task :unityLibrary:compileReleaseJavaWithJavac
> Task :unityLibrary:compileReleaseJavaWithJavac FAILED
33 actionable tasks: 33 executed
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)"
Can anyone help me on these errors?