Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

Godot Version

Question

editor/export/editor_export_platform.h:182 - Export: Building of Android project failed, check output for the error:

WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.2.1) was tested up to compileSdk = 32

This warning can be suppressed by adding
android.suppressUnsupportedCompileSdk=33
to this project’s gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33

Task :preBuild UP-TO-DATE
Task :preDebugBuild UP-TO-DATE
Task :assetPacks:installTime:generateAssetPackManifest UP-TO-DATE
Task :processDebugAssetPackManifests UP-TO-DATE
Task :linkDebugManifestForAssetPacks UP-TO-DATE
Task :assetPackDebugPreBundleTask UP-TO-DATE
Task :compileDebugRenderscript NO-SOURCE
Task :generateDebugResValues UP-TO-DATE
Task :generateDebugResources UP-TO-DATE
Task :mergeDebugResources UP-TO-DATE
Task :mapDebugSourceSetPaths UP-TO-DATE
Task :createDebugCompatibleScreenManifests UP-TO-DATE
Task :extractDeepLinksDebug UP-TO-DATE
Task :processDebugMainManifest UP-TO-DATE
Task :processDebugManifest UP-TO-DATE
Task :processApplicationManifestDebugForBundle UP-TO-DATE
Task :bundleDebugResources UP-TO-DATE
Task :mergeDebugShaders UP-TO-DATE
Task :compileDebugShaders NO-SOURCE
Task :generateDebugAssets UP-TO-DATE
Task :mergeDebugAssets UP-TO-DATE
Task :compileDebugAidl NO-SOURCE
Task :generateDebugBuildConfig UP-TO-DATE
Task :checkDebugAarMetadata UP-TO-DATE
Task :processDebugManifestForPackage UP-TO-DATE
Task :processDebugResources UP-TO-DATE
Task :compileDebugKotlin NO-SOURCE
Task :processDebugJavaRes NO-SOURCE
Task :mergeDebugJavaResource UP-TO-DATE
Task :checkDebugDuplicateClasses UP-TO-DATE
Task :desugarDebugFileDependencies UP-TO-DATE
Task :mergeExtDexDebug UP-TO-DATE
Task :mergeLibDexDebug UP-TO-DATE
Task :javaPreCompileDebug UP-TO-DATE
Task :compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:compileDebugJavaWithJavac’.

error: invalid source release: 17

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

BUILD FAILED in 9s
26 actionable tasks: 1 executed, 25 up-to-date

you probably have the wrong version of java that doesn’t match the gradle version.
https://docs.gradle.org/current/userguide/compatibility.html