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

Godot 4.2 !

Screenshot(s)

  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 :clean UP-TO-DATE
  > Task :assetPacks:installTime:clean UP-TO-DATE
  > Task :preBuild UP-TO-DATE
  > Task :preDebugBuild UP-TO-DATE
  > Task :compileDebugRenderscript NO-SOURCE
  > Task :assetPacks:installTime:generateAssetPackManifest
  > Task :generateDebugResValues
  > Task :generateDebugResources
  > Task :processDebugAssetPackManifests
  > Task :createDebugCompatibleScreenManifests
  > Task :mergeDebugResources
  > Task :mapDebugSourceSetPaths
  > Task :extractDeepLinksDebug
  > Task :processDebugMainManifest
  > Task :linkDebugManifestForAssetPacks
  > Task :processDebugManifest
  > Task :processApplicationManifestDebugForBundle
  > Task :mergeDebugShaders
  > Task :assetPackDebugPreBundleTask
  > Task :compileDebugShaders NO-SOURCE
  > Task :generateDebugAssets UP-TO-DATE
  > Task :mergeDebugAssets
  > Task :compileDebugAidl NO-SOURCE
  > Task :generateDebugBuildConfig
  > Task :checkDebugAarMetadata
  > Task :processDebugJavaRes NO-SOURCE
  > Task :checkDebugDuplicateClasses
  > Task :javaPreCompileDebug
  > Task :mergeLibDexDebug
  > Task :mergeDebugJniLibFolders
  > Task :bundleDebugResources
  > Task :writeDebugAppMetadata
  > Task :parseDebugIntegrityConfig
  > Task :processDebugManifestForPackage
  > Task :processDebugResources
  > Task :compileDebugKotlin NO-SOURCE
  > Task :mergeDebugJavaResource
  
  > Task :desugarDebugFileDependencies
  WARNING:C:\Users\Welcome\.gradle\caches\transforms-3\9a2d4eb6c6396b495fa445404429297b\transformed\jetified-godot-lib.template_debug\jars\classes.jar: D8: One or more classes has class file version >= 56 which is not officially supported.
  
  > Task :mergeDebugNativeLibs
  > 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.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 13s
  31 actionable tasks: 29 executed, 2 up-to-date

Question

Im getting error while trying to export games from aab to google play i’ve tried to fix it for a week
If anyone saw this problem and solved it please help me fix this error

What i did :
  • Installed android studio (added newest sdk platforms)
  • Use command prompt to add debug key and more…)
i follow this video :

#here link https://www.youtube.com/watch?v=ui-oWldXAdg&t=643s

Please help me if you can i pay 25$ for google play console
(My knowledge about godot is new sorry and there is not much sources for godot 4 or 4.1 >)

No problem with that mesage

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

the problem is here

error: invalid source release: 17

Go to Editor>Editor Settings>Export>Android
how is this line?
image

1 Like


I think its not right…
I located path like this C:/Program Files/Java/jdk-21.0.2
Even though i download jdk 17 still that error (and changed path)

Must sove all this
image

start for the first
image
recheck and reboot the computer if just reinstalled something

if dont work i will uninstall all things related with java on the computer and try again with this

1 Like

Man , you are right but one more issue happended

What went wrong:
  Execution failed for task ':compileDebugJavaWithJavac'.
  > error: invalid source release: 17

Thank you for helping me fixing that previous issue!. If u don’t know how to fix its ok
I don’t think this is easy…

It seems like you have a huge mess of versions, Java tends to be a chaos when you start installing multiple versions, and there start to be environment variables pointing where you don’t want, I would uninstall everything that has to do with Java and start again from fresh

https://www.reddit.com/r/godot/comments/17y90zi/error_exporting_to_aab_compiledebugjavawithjavac/
image

1 Like

Based on the link

when i locate android sdk path to JDK 17 it start making old problem:
image
System : Windows 11
After that i restarted it also shut down it. still that old error so i decided to return old file location to this : C:/Users/Welcome/AppData/Local/Android/Sdk
That error not appear anymore but that return to this error again

What went wrong:
  Execution failed for task ':compileDebugJavaWithJavac'.
  > error: invalid source release: 17

This makes me feel confused .

question :

is this right locate from your link to reddit you gave me ?

org.gradle.java.home=C:/Program Files/Java/jdk-17

(I don’t really know much about these if this is stupid)
Please reply i need you right now.

C:/Users/Welcome/AppData/Local/Android/Sdk

seems right if Welcome are your windows user

maybe the android studio is the problem?
This is the only thing I have installed and I compile for quest without problems


What is the problem can you tell me ?

uninstall all except this one
image
and don’t forget to reboot

if dont work, remove all visual studo, reinstall and install only that platform

and reboot without fear
uninstall, reboot
reinstall, reboot
install platform, reboot

Oh my goodness all way are not work i do as same as yours 100% but nothing happen still this error

What went wrong:
  Execution failed for task ':compileDebugJavaWithJavac'.
  > error: invalid source release: 17

I think this won’t work if we trying to solve this basic way here my project link :

You can download (or play) . Please uploading more pictures as possible a whole teaching how to export to aab like a tutorial from a to z? .Thanks bro

I have nothing to do now you don’t have to do anything man you are my life saver , Even thought it doesn’t but when i changed to godot 3.5 and creating project and follow like your it work!! Thanks so much! i don’t what to pay now what a long nerd
image
I will remember you forever

I understand nothing, but I’m glad to see that you export something
:clap::clap::clap:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.