Stay organized with collections
Save and categorize content based on your preferences.
Cocos Creator is a cross-platform game
engine used by many developers all over the world. It helps you create 2D and 3D
games and applications with great efficiency.
Steps to build a game for Android in Cocos Creator
To use Cocos Creator to build your game for Android platform, follow these
steps:
Launch the Cocos Dashboard. Go to the Editor tab and click
Download to add a version of the Cocos Creator. We highly recommend that
you use the latest version if possible.
Go to the Project tab and click New to create a new Cocos Creator
project.
Choose an editor version, input your project name, select a location to
store, and then click Create.
Compile and Generate the Android application in Android Studio.
Notable features
Google Play Instant
With Google Play Instant, people can
use an app or game without installing it first. Increase engagement with your
Android app or gain more installs by surfacing your instant app across the Play
Store and Google Play Games app. To see how it works in Cocos Creator,
refer to Publish your game as Google Play Instant app in Cocos
Creator.
Android App Bundle (AAB)
An Android App Bundle (or AAB) is a publishing format that includes all your
app's compiled code and resources, and defers APK generation and signing to
Google Play. For more details, refer to Publish your game with Android
App Bundle in Cocos Creator.
Swappy
The Android Frame Pacing library, also known as Swappy, is part of the Android
Game SDK. It
helps OpenGL
and Vulkan games
achieve smooth rendering and correct frame pacing on Android.
Developers can easily activate Swappy in Cocos Creator by selecting the "Enable
Swappy" checkbox on the build panel.
Vulkan, a
low-overhead, cross-platform API for high-performance 3D graphics, is supported
in Cocos Creator as one of the graphics API backends. Developers can select
Vulkan as the graphics API for Android from the build panel in
Cocos Creator.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-08-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-08-15 UTC."],[],[],null,["# About Cocos Creator\n\n[Cocos Creator](https://www.cocos.com) is a cross-platform game\nengine used by many developers all over the world. It helps you create 2D and 3D\ngames and applications with great efficiency.\n\nSteps to build a game for Android in Cocos Creator\n--------------------------------------------------\n\nTo use Cocos Creator to build your game for Android platform, follow these\nsteps:\n\n1. [Download](https://www.cocos.com/en/creator/download) and\n [install](https://docs.cocos.com/creator/manual/en/getting-started/install/)\n the **Cocos Dashboard**.\n\n2. Launch the **Cocos Dashboard** . Go to the **Editor** tab and click\n **Download** to add a version of the Cocos Creator. We highly recommend that\n you use the latest version if possible.\n\n3. Go to the **Project** tab and click **New** to create a new Cocos Creator\n project.\n\n4. Choose an editor version, input your project name, select a location to\n store, and then click **Create** .\n\n5. You are good to go for creating your game!\n\n6. [Export your game to\n Android](https://docs.cocos.com/creator/manual/en/editor/publish/native-options.html#build-for-android)\n using the **Project \\\u003e Build** panel.\n\n7. Compile and Generate the Android application in Android Studio.\n\nNotable features\n----------------\n\n### Google Play Instant\n\nWith [Google Play Instant](/topic/google-play-instant), people can\nuse an app or game without installing it first. Increase engagement with your\nAndroid app or gain more installs by surfacing your instant app across the Play\nStore and Google Play Games app. To see how it works in Cocos Creator,\nrefer to [Publish your game as Google Play Instant app in Cocos\nCreator](/games/engines/cocos/cocos-playinstant).\n\n### Android App Bundle (AAB)\n\nAn Android App Bundle (or AAB) is a publishing format that includes all your\napp's compiled code and resources, and defers APK generation and signing to\nGoogle Play. For more details, refer to [Publish your game with Android\nApp Bundle in Cocos Creator](/games/engines/cocos/cocos-aab).\n\n### Swappy\n\nThe Android Frame Pacing library, also known as Swappy, is part of the [Android\nGame SDK](https://android.googlesource.com/platform/frameworks/opt/gamesdk/). It\nhelps [OpenGL](https://source.android.com/docs/core/graphics/arch-egl-opengl)\nand [Vulkan](https://source.android.com/docs/core/graphics/arch-vulkan) games\nachieve smooth rendering and correct frame pacing on Android.\n\nDevelopers can easily activate Swappy in Cocos Creator by selecting the \"Enable\nSwappy\" checkbox on the build panel.\n\nFor more information, refer to the Google document [Frame Pacing Library\nOverview](https://source.android.com/docs/core/graphics/frame-pacing).\n\n### Vulkan\n\n[Vulkan](https://source.android.com/docs/core/graphics/arch-vulkan), a\nlow-overhead, cross-platform API for high-performance 3D graphics, is supported\nin Cocos Creator as one of the graphics API backends. Developers can select\nVulkan as the graphics API for Android from the build panel in\nCocos Creator."]]