This message was deleted.
# community-support
s
This message was deleted.
a
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated. It will be removed in version 5.0 of the Android Gradle plugin. You will no longer be able to disable R8
Task launcherpreBuild UP-TO-DATE
Task unityLibrarypreBuild UP-TO-DATE
Task launcherpreDebugBuild UP-TO-DATE
Task unityLibrarypreDebugBuild UP-TO-DATE
Task unityLibrarycompileDebugAidl NO-SOURCE
Task unityLibrarypackageDebugRenderscript NO-SOURCE
Task unityLibrarycompileDebugRenderscript NO-SOURCE
Task unityLibrarygenerateDebugResValues UP-TO-DATE
Task launchergenerateDebugBuildConfig UP-TO-DATE
Task unityLibrarygenerateDebugResources UP-TO-DATE
Task launchercompileDebugAidl NO-SOURCE
Task launchercompileDebugRenderscript NO-SOURCE
Task launcherjavaPreCompileDebug UP-TO-DATE
Task launchergenerateDebugResValues UP-TO-DATE
Task launchergenerateDebugResources UP-TO-DATE
Task launchercreateDebugCompatibleScreenManifests UP-TO-DATE
Task launcherextractDeepLinksDebug UP-TO-DATE
Task unityLibrarypackageDebugResources UP-TO-DATE
Task launchermergeDebugShaders UP-TO-DATE
Task unityLibraryextractDeepLinksDebug UP-TO-DATE
Task unityLibraryprocessDebugManifest UP-TO-DATE
Task unityLibrarycompileDebugLibraryResources UP-TO-DATE
Task launchermergeDebugResources UP-TO-DATE
Task launcherprocessDebugManifest UP-TO-DATE
Task launchercompileDebugShaders NO-SOURCE
Task launchergenerateDebugAssets UP-TO-DATE
Task launcherprocessDebugJavaRes NO-SOURCE
Task unityLibraryparseDebugLocalResources UP-TO-DATE
Task unityLibrarygenerateDebugRFile UP-TO-DATE
Task launchercheckDebugDuplicateClasses UP-TO-DATE
Task unityLibrarygenerateDebugBuildConfig UP-TO-DATE
Task unityLibraryjavaPreCompileDebug UP-TO-DATE
Task launcherprocessDebugResources UP-TO-DATE
Task launcherdesugarDebugFileDependencies UP-TO-DATE
Task launchermergeExtDexDebug UP-TO-DATE
Task launchermergeDebugJniLibFolders UP-TO-DATE
Task launchervalidateSigningDebug UP-TO-DATE
Task unityLibrarycompileDebugJavaWithJavac FAILED
24 actionable tasks: 1 executed, 23 up-to-date UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
warning: D:\Foxtrot\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\libs\classes.jar(com/samsung/android/gamesdk/GameSDKManager.class): major version 53 is newer than 52, the highest major version supported by this compiler. It is recommended that the compiler be upgraded. D\Foxtrot\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity\androidnotifications\UnityNotificationManager.java165: error: cannot find symbol if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) ^ symbol: variable TIRAMISU location: class VERSION_CODES D\Foxtrot\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity\androidnotifications\UnityNotificationManager.java166: error: cannot find symbol permissionGranted = mContext.checkCallingOrSelfPermission(Manifest.permission.POST_NOTIFICATIONS) == PackageManager.PERMISSION_GRANTED; ^ symbol: method setContentDescription(String) location: variable style of type BigPictureStyle D\Foxtrot\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity\androidnotifications\UnityNotificationManager.java981: error: cannot find symbol style.showBigPictureWhenCollapsed(extras.getBoolean(KEY_BIG_SHOW_WHEN_COLLAPSED, false)); ^ symbol: method showBigPictureWhenCollapsed(boolean) location: variable style of type BigPictureStyle Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 11 errors 1 warning FAILURE: Build failed with an exception. * What went wrong: Execution failed for task 'unityLibrarycompileDebugJavaWithJavac'. > 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 BUILD FAILED in 5s Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
CommandInvokationFailure: Gradle build failed. C:\Program Files\Unity\Hub\Editor\2021.3.31f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2021.3.31f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleDebug"
v
That is not really a Gradle question. The compilation fails with 11 errors. The compiler output tells you the 11 places where your code is erroneous.
a
Hi Vampire thanks for your reply, I'm using PlayMaker with Unity
I think this is the main problem warning: D:\Foxtrot\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\libs\classes.jar(com/samsung/android/gamesdk/GameSDKManager.class): major version 53 is newer than 52, the highest major version supported by this compiler. (edited)
But I can't find anywhere on the internet to resolve this
t
You're using Java 8 but the project requires at least Java 9.
a
java -version
java version "1.8.0_391" Java(TM) SE Runtime Environment (build 1.8.0_391-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.391-b13, mixed mode)
Hi Thomas, thanks for your answer
There is a immense amount of versions about everything, how can I simply download an higher version of java ?
is it the JRE or the JDK ? I can't understand
Should I download this OpenJDK with java 17 ? https://www.openlogic.com/openjdk-downloads
v
When it comes to downloading Java, I'd use https://adoptium.net/ but you can probably also use any other OpenJDK build. No idea how it is for Unity / PlayMaker, but for a normal Gradle project I would instead recommend to use JVM Toolchains feature to decouple the Java version you run Gradle with from the Java version that is used to build and run your code. But either way. I tend to doubt that a higher Java version will fix those compilation errors, but TIAS. 🙂
a
Alright I'll try this, thank you for these answers !
👌 1
t
On Windows, I'd recommend using Chocolatey to make it easier to keep things up-to-date. Install the temurin11 or temurin17 package then. An alternative is winget (from Microsoft), installing the EclipseAdoptium.Temurin.11.JDK or EclipseAdoptium.Temurin.17.JDK package.
v
Ah, good old Choco. I don't like it too much, packages get easily umaintained and then are years behind and you think you are on latest but are not. 🙂
a
I'm only a school student trying to build my unity project ahahah not a programmer
I'll try my best
v
If you are not a programmer you should probably not try to do programmer tasks. Unless of course you intend to become a programmer, or even better a developer. 😄
a
I'm game designer
❤️ 2
but now I'm more a error designer
v
Designing good errors is more challenging than designing good games 😄
a
ahah