game/godot

Godot3 API - Exporting for Android

C/H 2018. 11. 12. 08:30

Exporting for Android

Exporting for Android has fewer requirements than compiling Godot for it. The following steps detail what is needed to setup the SDK and the engine.
Android 용 내보내기는 Godot을 컴파일하는 것보다 요구 사항이 적습니다. 다음 단계에서는 SDK 및 엔진을 설정하는 데 필요한 내용을 자세히 설명합니다.

Download the Android SDK

Download and install the Android SDK from https://developer.android.com/studio/
https://developer.android.com/studio/에서 Android SDK를 다운로드하여 설치하십시오.

Install OpenJDK or Oracle JDK

Download and install OpenJDK or Oracle JDK. Versions below JDK 8 may not work, some users have reported issues with the jarsigner (used to sign the APKs) in JDK 7.
OpenJDK 또는 Oracle JDK를 다운로드하여 설치하십시오. JDK 8 이하의 버전이 작동하지 않을 수 있습니다. 일부 사용자는 JDK 7에서 jarsigner (APK에 서명하는 데 사용)와 관련된 문제를보고했습니다.

Create a debug.keystore

Android needs a debug keystore file to install to devices and distribute non-release APKs. If you have used the SDK before and have built projects, ant or eclipse probably generated one for you (on Linux and macOS, you can find it in the ~/.android directory).
Android에 기기에 설치하고 출시되지 않은 APK를 배포하려면 디버그 키 저장소 파일이 필요합니다. 이전에 SDK를 사용하고 프로젝트를 만들었다면 개미 또는 이클립스가 아마도 하나를 생성했을 것입니다 (Linux 및 macOS에서는 ~ / .android 디렉토리에서 찾을 수 있습니다).

If you can’t find it or need to generate one, the keytool command from the JDK can be used for this purpose:
찾지 못하거나 생성 할 필요가있는 경우, JDK의 keytool 명령을이 용도로 사용할 수 있습니다.

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

# Window 10 Home keytool -genkey -v -keystore release.keystore -alias release -keyalg RSA -keysize 2048 -validity 36500 키 저장소 비밀번호 입력: 새 비밀번호 다시 입력: 이름과 성을 입력하십시오. [Unknown]: release 조직 단위 이름을 입력하십시오. [Unknown]: release 조직 이름을 입력하십시오. [Unknown]: release 구/군/시 이름을 입력하십시오? [Unknown]: Geumcheon-gu 시/도 이름을 입력하십시오. [Unknown]: Seoul 이 조직의 두 자리 국가 코드를 입력하십시오. [Unknown]: Kr CN=release, OU=release, O=release, L=Geumcheon-gu, ST=Seoul, C=kr이(가) 맞습니까? [아니오]: 예 다음에 대해 유효 기간이 36,500일인 2,048비트 RSA 키 쌍 및 자체 서명된 인증서(SHA256withRSA)를 생성하는 중 : CN=release, OU=release, O=release, L=Geumcheon-gu, ST=Seoul, C=kr <release>에 대한 키 비밀번호를 입력하십시오. (키 저장소 비밀번호와 동일한 경우 Enter 키를 누름): [release.keystore을(를) 저장하는 중] Warning: JKS 키 저장소는 고유 형식을 사용합니다. "keytool -importkeystore -srckeystore release.keystore -destkeystore release.keystore -deststoretype pkcs12"를 사용하는 산업 표준 형식인 PKCS12로 이전하는 것이 좋습니다.

keytool -list -keystore release.keystore 키 저장소 비밀번호 입력: 키 저장소 유형: jks 키 저장소 제공자: SUN 키 저장소에 1개의 항목이 포함되어 있습니다. release, 2018. 11. 26, PrivateKeyEntry, 인증서 지문(SHA1): --:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--

Make sure you have adb

Android Debug Bridge (adb) is the command line tool used to communicate with Android devices. It’s installed with the SDK, but you may need to install one (any) of the Android API levels for it to be installed in the SDK directory.
Android Debug Bridge (adb)는 Android 기기와 통신하는 데 사용되는 명령 행 도구입니다. SDK와 함께 설치되지만 SDK 디렉토리에 Android API 레벨을 설치하려면 하나 이상의 Android API 레벨을 설치해야 할 수도 있습니다.

Setting it up in Godot

Enter the Editor Settings screen. This screens contains the editor settings for the user account in the computer (It’s independent from the project).
편집기 설정 화면으로 들어갑니다. 이 화면에는 컴퓨터의 사용자 계정에 대한 편집기 설정이 있습니다 (프로젝트와 독립적입니다).

Scroll down to the section where the Android settings are located:
Android 설정이있는 섹션으로 스크롤합니다.

In that screen, the path to 3 files needs to be set:
이 화면에서 세 파일의 경로를 설정해야합니다.

  • The adb executable (adb.exe on Windows)
  • The jarsigner executable (from JDK 6 or 8)
  • The debug keystore

Once that is configured, everything is ready to export to Android!
구성이 완료되면 모든 항목을 Android로 내보낼 준비가되었습니다.

반응형

'game > godot' 카테고리의 다른 글

Godot3 API - Customizing the Web export HTML page  (0) 2018.11.14
Godot3 API - Exporting for the Web  (0) 2018.11.13
Godot3 API - Internationalization  (0) 2018.11.09
Godot3 API - Internationalizing games  (0) 2018.11.09
Godot3 API - Physics  (0) 2018.11.08