[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Develop your game in Android Studio\n\nYou can use Android Studio with C/C++ to bring your game to life on Android.\n\n[Android Studio](/studio) is the official Integrated Development Environment\n(IDE) for Android app development. It includes extensive support for the C/C++\nprogramming language and development using the\n[Android Native Development Kit (NDK)](/ndk), and is available on multiple\noperating systems.\n\nIf you have existing Microsoft Visual Studio projects and develop primarily on\nWindows in C or C++, you can use the\n[Android Game Development Extension](/games/agde) for Microsoft Visual Studio\ninstead.\n\nManage your project\n-------------------\n\nAndroid Studio integrates CMake support for configuration and management of\nC/C++ code. CMake allows you to structure your C/C++ project in a modular\nfashion. Android Studio's Gradle build system and\n[Android Gradle plugin](/studio/releases/gradle-plugin)\nuse CMake to set up the build process for native C/C++ code modules.\n\nThe Android Studio editor has robust editing and indexing capabilities for C/C++\ncode. Standard features of the editor include code completion, syntax\nreformatting, symbol lookups, and pre-compile error checking.\n\nIntegrate dependencies\n----------------------\n\nAndroid Studio's Gradle build system supports declaring local or remote binary\ndependencies for your project. A common use case is pulling in libraries such as\n[Android Jetpack](/jetpack) from a Maven remote dependency server. These\ndependencies allow precise control of what version of a dependency is being\nintegrated into an app. Remote dependencies also help avoid committing\nextraneous files into your project's version control system.\n\nDebug in Android Studio\n-----------------------\n\nAndroid Studio provides a debugger that enables you to debug your game on either\nan emulator or a physical device. The Android Studio debugger supports C/C++,\nJava, and Kotlin, and uses [LLDB](https://lldb.llvm.org/) to debug\nC/C++. Program breakpoints and variable inspection are available for all\nlanguages. You can set hardware watchpoints when debugging C/C++ code using\nLLDB. The Android Studio debugger supports defining custom data type renderers\nfor enhanced display of project data structures.\n\nProfile in Android Studio\n-------------------------\n\nAndroid Studio includes profiling tools that help measure the runtime\nperformance of your game. Profiling categories include CPU usage, memory usage,\nnetwork activity and energy use. Effective use of profiling tools can reduce\nperformance hiccups or out of memory crashes in your game that negatively impact\nyour players. Reducing energy consumption of your game can avoid performance\nproblems due to thermal throttling.\n\nAndroid Studio features application package analysis tools that let you inspect\nwhat is taking up space in your build. These tools, when used in concert with\nfeatures such as Play Asset Delivery, help optimize the size of your game and\nensure your users don't download more data than is necessary.\n\nMore Information\n----------------\n\nFor more information on Android Studio, including system requirements, download\nlinks, and the user guide, visit the [Android Studio](/studio) page."]]