Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Panduan ini membahas proses ekspor project Defold sebagai aplikasi Android.
Defold dapat membuat file APK untuk menguji perangkat lokal dan Android App
Bundle untuk dikirim ke Google Play Store.
Untuk memulai proses ekspor, pilih Project > Bundle > Android Application…
dari panel menu Defold. Jendela Bundle Application akan terbuka.
Gambar 1. Jendela Bundle Application
Menandatangani build
Jika kolom Keystore dan Sandi Keystore kosong, Defold
akan otomatis membuat file keystore debug dan menggunakannya untuk menandatangani aplikasi.
Build yang dibuat dengan keystore debug dapat diinstal di perangkat lokal, tetapi tidak
dapat diupload ke Google Play Store.
Untuk membuat build untuk diupload ke Google Play Store, Anda dapat menggunakan Android
Studio untuk membuat file keystore rilis.
Untuk membuat file keystore rilis bagi aplikasi Anda:
Luncurkan Android Studio.
Di jendela Welcome to Android Studio, pilih Create New Project.
Pilih template No Activity, lalu klik Next.
Di layar Configure Your Project, klik Finish untuk membuat project.
Setelah membuat file keystore, tutup Android Studio lalu kembali ke editor Defold.
Di jendela Bundle Application, pilih tombol ... di samping kolom Keystore dan pilih file .keystore yang baru dibuat.
Masukkan sandi keystore di kolom Sandi Keystore.
Mengonfigurasi setelan build
Gunakan jendela Bundle Application untuk mengonfigurasi setelan build. Setelan ini
berbeda-beda bergantung pada apakah setelan tersebut untuk diuji di perangkat lokal atau merupakan
versi final untuk diupload ke Google Play Store.
Untuk mengonfigurasi build yang akan diuji di perangkat lokal:
Di bagian Architectures, pilih 32-bit dan 64-bit.
Dalam daftar Bundle Format, pilih APK.
Dalam daftar Varian, pilih Debug.
Jika Variant disetel ke Debug, Defold akan mencatat pesan debug mesin log ke
perangkat logcat. Ini dapat dilihat di jendela logcat
di Android Studio atau dengan perintah logcat di adb. Untuk mengetahui informasi selengkapnya tentang
penggunaan adb guna menginstal file APK dan melihat output logcat, lihat
halaman Android Debug Bridge.
Untuk mengonfigurasi build untuk diupload ke Google Play Store:
Di bagian Architectures, pilih 32-bit dan 64-bit.
Pada daftar Format Paket, pilih AAB.
Dalam daftar Varian, pilih Rilis.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# Export Defold projects to Android\n\nThis guide covers the process of exporting a Defold project as an Android app.\nDefold can generate both APK files for local device testing and Android App\nBundles for submission to the Google Play Store.\n\nTo start the export process, choose **Project \\\u003e Bundle \\\u003e Android Application...**\nfrom the Defold menu bar. The **Bundle Application** window opens.\n**Figure 1.** The **Bundle Application** window\n\nSign builds\n-----------\n\nIf the **Keystore** and **Keystore Password** fields are empty, Defold\nautomatically generates a debug keystore file and uses it to sign the application.\nBuilds created with a debug keystore may be installed on local devices, but may\nnot be uploaded to the Google Play Store.\n\nTo create a build for upload to the Google Play Store, you can use Android\nStudio to create a release keystore file.\n\nTo create a release keystore file for your app:\n\n1. Launch Android Studio.\n2. In the **Welcome to Android Studio** window, select **Create New Project**.\n3. Select the **No Activity** template, and click **Next**.\n4. In the **Configure Your Project** screen, click **Finish** to create the project.\n5. Create a keystore file using the instructions at [Generate an upload key and keystore](/studio/publish/app-signing#generate-key).\n6. After creating the keystore file, quit Android Studio and return to the Defold editor.\n7. In the **Bundle Application** window, select the **...** button next to the **Keystore** field and select the newly created `.keystore` file.\n8. Enter the keystore password in the **Keystore Password** field.\n\n| **Caution:** When Defold updates to a new version, it generates a new debug keystore file. Before attempting to install a new build, uninstall any build generated using the previous debug keystore. If you don't follow this uninstall step, you'll get an `INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES` error during installation.\n\nConfigure build settings\n------------------------\n\nUse the **Bundle Application** window to configure build settings. These settings\nare different depending on whether it's for testing on a local device or is a\nfinal build for uploading to the Google Play Store.\n\nTo configure a build for testing on a local device:\n\n- In the **Architectures** section, select both **32-bit** and **64-bit**.\n- In the **Bundle Format** list, select **APK**.\n- In the **Variant** list, select **Debug**.\n\nWhen **Variant** is set to **Debug** , Defold logs engine debug messages to\nthe device `logcat`. This is viewable in the [`logcat` window](/studio/debug/am-logcat)\nin Android Studio or with the `logcat` command in `adb`. For more information on\nusing `adb` to install APK files and view logcat output, see the\n[Android Debug Bridge](/studio/command-line/adb) page.\n\nTo configure a build for upload to the Google Play Store:\n\n- In the **Architectures** section, select both **32-bit** and **64-bit**.\n- In the **Bundle Format** list, select **AAB**.\n- In the **Variant** list, select **Release**."]]