YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

sourceCompatibility/targetCompatibility version 8 was deprecated by the google's java toolschain #7951

Open gm-bug-reporter[bot] opened 4 weeks ago

gm-bug-reporter[bot] commented 4 weeks ago

Description

When compilling for android in the Output these warnings are shown:

Java compiler version 21 has deprecated support for compiling with source/target version 8. Try one of the following options:

  1. [Recommended] Use Java toolchain with a lower language version
  2. Set a higher source/target version
  3. Use a lower version of the JDK running the build (if you're not using Java toolchain) For more details on how to configure these settings, see https://developer.android.com/build/jdks. To suppress this warning, set android.javaCompile.suppressSourceTargetDeprecationWarning=true in gradle.properties. warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release

In the runtime-2024.8.1.218\android\runner\ProjectFiles\build.gradle has set source and target java versions to 8: compileOptions { sourceCompatibility 1.8 targetCompatibility 1.8 }

Steps To Reproduce

Create emnty project and compilr it for Android

Which version of GameMaker are you reporting this issue for?

IDE v2024.8.1.171 Runtime v2024.8.1.218

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

Which platform(s) are you seeing the problem on?

Android

39105d13-5953-42d3-90b7-b6163fbd1131

Syed-Bilawal commented 1 week ago

did you find any solution??? i am facing the same issue ... Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times. warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.

jackerley commented 1 week ago

I'm not seeing this issue here. Can you check that your Android Studio installation is up to date?

jackerley commented 1 week ago

Sorry, my bad, I just updated my Android Studio and now I'm getting this warning.