Building/Compiling Godot Export Templates (2.1.4)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By SingingApple

Hey all, how can I build the export templates of Godot 2.1.4 for Windows 7? Like what do I need to download and what do I need to do?

UPDATE: Although I commend all your efforts in writing the answers, I think you guys misunderstood my question. I didn’t ask how do I create an apk in Godot. In fact I already know how to do that and have already done that before successfully; what I had asked was how do I build the Godot Export templates, MYSELF. I think a better word for BUILD would be COMPILE.

:bust_in_silhouette: Reply From: DodoIta

The requirements are explained here (I know it’s for 3.0 but it’s pretty much the same for 2.1).
You’ll need:

  • The Android SDK (I think you only need the Android platform-tools)
  • Oracle JDK or OpenJDK (versions 6 and 8 are recommended)
  • A keystore (follow the docs’ page on how to do it)

Then tell Godot where to find the adb, the jarsigner and the keystore and you should be good to export :wink:

Oh, regarding the export templates, just download them here (scroll down to export templates) and import them in Godot using the interface.

Although this isn’t what I asked for, your answer is appreciated.

SingingApple | 2018-02-19 12:24

:bust_in_silhouette: Reply From: originaltenka

1.After downloading the export Templates, go to the far upper right corner and click the Settings tab.
2.In the drop down, click on Install Export Templates and locate the export templates
3.Click on the Settings tab again and click on Editor Settings
4.Scroll down and click on Android, there should be several tabs with folder icons

  • Adb → Can be found in Users/UserExample/AppData/local/Android/sdk/platform-tools

(Note if you can’t find the AppData folder, Go to the top left of the windows 7, click on organize, then Folder and search options.In the Folder and Search option go the View tab and in the Hidden files and folders, click show hidden files…)

  • Jarsigner → can be found where you installed the Java jdk, inside the bin folder

-The Debug KeyStore -->If you’ve ever made an android project before in android studio or other Ide the debug keystore can be found in users/ExampleUser/ .android
or you could generate it in the command line using :

$ keytool -genkey -v -keystore my-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

And that’s it…I’ve written all this, because I know how frustating it can be

Although this isn’t what I asked for, your answer is appreciated.

SingingApple | 2018-02-19 12:24

You never know, someone else might just need it

originaltenka | 2018-02-19 12:33

Yeah you’re right!

SingingApple | 2018-02-19 12:34

:bust_in_silhouette: Reply From: Calinou

See Compiling for Android in the documentation. Note that you must have a Python 2.7 installation to compile the Godot 2.1 branch – compiling using a Python 3.x installation is only supported with Godot 3.0 and later.