This is the error i always get when i try to run my program with android studio:
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by net.rubygrapefruit.platform.internal.NativeLibraryLoader in an unnamed module (file:/C:/Users/matte/.gradle/wrapper/dists/gradle-8.10.2-bin/a04bxjujx95o3nb99gddekhwo/gradle-8.10.2/lib/native-platform-0.22-milestone-26.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
FAILURE: Build failed with an exception.
* What went wrong:
BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 69
> Unsupported class file major version 69
* 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 2s
in gamemakers android game options i have gradle version set to 8.10.2 and gradle plugin version to 8.8.0
i tried installing the correct versions of everything in gamemakers Required SDKs article (except Android SDK Platform-Tools 35.0.2 because i could only find 36) and i still got the same error 😭
in android studios SDK manager i have:
Android SDK Platform 35
Android SDK Build-Tools 34.0.0
NDK (Side by side) 27.0.12077973
Android Emulator 36.1.9
Android SDK Platform-Tools 36.0.0