Linux, Godot and Gradle bug?

I am currently at the Gradle build section of the Master Mobile Game Development with Godot 4: From Concept to App Stores course. I run Unbutu 22.04 and am using Godot 4.1.3 as recommended for the course.

Everything was going fine until switching to gradle. I began getting errors:

editor/export/editor_export_platform.h:178 - Export: Building of Android project failed, check output for the error. Alternatively visit docs.godotengine.org for Android build documentation.
Cannot remove non-existent file or directory: /home/joecool/.cache/godot/tmpexport.1706397542.apk

It ?seems to be? a known bug??? This is the first I have knew about it and right now it is a show stopper. If anyone has any suggestions I am happy to hear them.

Not used Linux I’m afraid so can’t say what’s causing it.

I did have a look around.

Is it something like they mention here at all?

https://github.com/godotengine/godot/issues/76185

1 Like

Thank you for the response. I did see that thread but was getting tired last night. I think i have resolved the problem. It looks like I had upgraded my OpenJDK to version 21 causing the conflict.

Once uninstalling and going back to version 17 of my JDK it appears to have resolved the error.

1 Like

Nice one.

Hopefully if anyone else gets a similar they will find this post for info.

Cheers for adding what fix worked for you :+1:

1 Like

In case anyone else finds this thread here is a link to the java SDK/Gradle Build version(s) compatibility. So if you are going to Godot 4.2 you should be able to use new(er) versions.

https://docs.gradle.org/current/userguide/compatibility.html

1 Like

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

Privacy & Terms