I have a problem with export to Android and iOS

Hi,

when I try to export my game to Android and iOS than in terminal show me a trouble.

Android trouble:
Checking Java JDK and Android SDK versions

ANDROID_SDK_ROOT=undefined (recommended setting)

ANDROID_HOME=undefined (DEPRECATED)

Using Android SDK: /usr/local/Caskroom/android-sdk/4333796

FAILURE: Build failed with an exception.

  • What went wrong:

Could not open settings generic class cache for settings file ‘/Users/tomashostovsky/Downloads/nn/platforms/android/settings.gradle’ (/Users/tomashostovsky/.gradle/caches/7.5.1/scripts/7e15adv812akcxkuh6ist7or8).

BUG! exception in phase ‘semantic analysis’ in source unit ‘BuildScript’ Unsupported class file major version 63

  • 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See Command-Line Interface

BUILD FAILED in 991ms

Command failed with exit code 1: /usr/local/Cellar/gradle/7.5.1_1/bin/gradle -p /Users/xxxxx/Downloads/nn/platforms/android wrapper -b /Users/xxxxx/Downloads/nn/platforms/android/wrapper.gradle

iOS trouble:
xcodebuild: Command failed with exit code 1 Error output:

xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance

Thanks a lot.

T from Czechia