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