Godot: Confusing workflow for new custom Android builds / source template

Created on 7 May 2019  路  11Comments  路  Source: godotengine/godot

Godot version:
Godot 3.2.dev commit id:0239d8bd9fa03965439aac2482d18746f807bd00

OS/device including version:
Linux Manjaro

Issue description:
I don't know if this is an issue or not, simply I don't know how to test the new android export. I follow the documentation instruction, but Godot doesn't create the android project template. I attach some screenshot to better understand.
Schermata del 2019-05-07 13-27-46
Schermata del 2019-05-07 13-28-34
Tell me the template is missing but I have installed all templates.
Schermata del 2019-05-07 13-29-04
It's a bug or is intended to do this for now? How can I test the new android export for some feedback?

Steps to reproduce:
Look the screenshot

Minimal reproduction project:

documentation enhancement android editor

Most helpful comment

Well I have managed to solve that issue. You have to take everything in godot/platform/android/java/ (except the Build folder), zip them in a file named as "android_source.zip" and last copy-paste it in your templates folder 3.2.dev

All 11 comments

The templates have to be exactly match for your version of Godot, so if you compiled from master yourself, you also need to compile the templates. And I think there might be something wrong with creation of android templates right now. I was not able to compile it myself few days ago. Everything looked like it's going all right, but there was no templates in the folder after all. Looks like #28498 has something to do with this.

@freemanfromgodotengine They are now in another folder (not copied to /bin anymore).

You can find the generated apk in godot/platform/android/java/build/outputs/apk

I can't find the .apk there on /android/java although the folder should be correct. Don't know what I'm doing wrong. Edit: Sorry, I forgot to run ./gradlew

Btw, i can't export the gradle project from "Install Android Build Template", I get the same error "Android build template is missing", although i have installed the template

Well I have managed to solve that issue. You have to take everything in godot/platform/android/java/ (except the Build folder), zip them in a file named as "android_source.zip" and last copy-paste it in your templates folder 3.2.dev

There is no android_source.zip on godot server so it won't work. Apk files won't going to work. Zipping java folder works but it does not work on android phone, i.e crashes( might be some other bug).

There is no android_source.zip on godot server so it won't work. Apk files won't going to work. Zipping java folder works but it does not work on android phone, i.e crashes( might be some other bug).

Maybe the engine libs are missing in java folder... you have to compile the engine first (scons platform = android )

I did copy paste lib folder in android_source.

If it crashes, your best option is to run adb logcat and open an issue with the log.

I do not have the android_source.zip file in my templates folder and I can still build for android perfectly fine, for oculus quest and a normal android device @erammos

Was this page helpful?
0 / 5 - 0 ratings