JDK android file missing?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ()scar
:warning: Old Version Published before Godot 3 was released.

Hello! I’m trying to install the 3 files needed to export to android, (SDK, JDK and debug.key-store) and I’ve been using this tutorial: https://www.youtube.com/watch?v=nSPFsizxA1w
(skip to 5.00)
however the file I’ve downloaded from Oracle doesn’t have the required Java-signer file;
have I downloaded the wrong thing (the tutorial JDK package is 8u121, iv’e downloaded 8u151) and if so, where can i find the right file?
Additionally I don’t quite understand the Debug.Key-store creation process, any tips?

using a crappy windows 10 laptop.

Sincerely, ()scar

:bust_in_silhouette: Reply From: rolfpancake

Because the docs are mainly written with the Linux/OSX system in mind, I will try to sum up the instructions for Windows systems. Replace <USERNAME> with your username.

Download and install the Android SDK

You will need the path to the adb, jarsigner and keytool which should be here:

  • C:\Users\<USERNAME>\AppData\Local\Android\sdk\platform-tools\adb.exe
  • C:\Program Files\Android\Android Studio\jre\bin\jarsigner.exe
  • C:\Program Files\Android\Android Studio\jre\bin\keytool.exe

Run the keytool

Open a terminal aka command prompt (e.g. cmd). Powershell has a problem running the keytool.exe so my advice would be to use the normal Windows cmd or to install the git cmd which works perfectly here. Now run the cmd in administator mode and change working directory to the path of the keytool.exe:

cd C:\Program Files\Android\Android Studio\jre\bin\

Run the command provided in the docs:

keytool -keyalg RSA -genkeypair -alias androiddebugkey -keypass android -keystore debug.keystore -storepass android -dname "CN=Android Debug,O=Android,C=US" -validity 9999

The debug.keystore-file is stored into the current bin folder and you could move it into the following folder:

  • C:\Users\<USERNAME>\.android\debug.keystore

Enter the needed information into Godot settings

Download the needed Export Templates for your Godot version.
Enter the given paths into the Export Templates settings page.

Now you should be able to compile your project to the android platform.

I wonder this response be in oficial docs for people who doesn’t know how to set up JDK and generate key

UnsignedFoo | 2018-01-03 17:28

fyi, I made a pull request to put this into the docs:
https://github.com/godotengine/godot-docs/pull/3066

Jason Swearingen | 2020-01-15 22:13

Thank you for that. :slight_smile:

rolfpancake | 2020-02-16 18:22

As a seperate installation of the JDK isn’t necessary anymore I updated the answer. Now you only have to install Android Studio.

rolfpancake | 2021-04-17 14:04