What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> error: invalid source release: 17
What happened : I got this issue while trying to export my game project to file aab that i can upload to google play i dont know why it requires .abb instead of apk.
Question
I dont really know much about these so please help if you saw this error and solved it before thank you so much!
It worked in 4.2 for me, I don’t know if you can change java version for godot, from what I understand, when you compile for android, godot does it for you in a way. If you want more control over the android build or to export in aab, you use gradle to compile by checking “use gradle build” in the export window and by installing an android template in the project tab. From there each export will no longer use godot compiler but gradle and to change java version of gradle it’s in the config.gradle file in YourProjectFolder/android/build.
But normally you don’t have to change that, just download and install the version of Java gradle tells you to.
J’ai eu le même soucis. Effectivement, il ne faut pas hésiter à effectuer des MAJ pour Gradle. Toutefois, il faut que la lecture JAVA entre Godot et Android studio soit identique. Il vous faudra utiliser le même logiciel sur les deux.