คุณใช้ Android Studio กับ C/C++ เพื่อสร้างเกมบน Android ได้
Android Studio เป็นสภาพแวดล้อมในการพัฒนาซอฟต์แวร์แบบรวม (IDE) อย่างเป็นทางการสำหรับการพัฒนาแอป Android
โดยมีส่วนสนับสนุนที่ครอบคลุมสำหรับภาษาโปรแกรม C/C++
และการพัฒนาโดยใช้
Android Native Development Kit (NDK) และพร้อมใช้งานในระบบปฏิบัติการหลายระบบ
หากมีโปรเจ็กต์ Microsoft Visual Studio อยู่แล้วและพัฒนาบน Windows ใน C หรือ C++ เป็นหลัก คุณสามารถใช้ส่วนขยายการพัฒนาเกม Android สำหรับ Microsoft Visual Studio แทนได้
Android Studio มีเครื่องมือวิเคราะห์แพ็กเกจแอปพลิเคชันที่ช่วยให้คุณตรวจสอบได้ว่า
อะไรที่ใช้พื้นที่ในการบิลด์ เครื่องมือเหล่านี้เมื่อใช้ร่วมกับฟีเจอร์ต่างๆ เช่น การนำส่งเนื้อหา Play จะช่วยเพิ่มประสิทธิภาพขนาดของเกมและรับประกันว่าผู้ใช้จะไม่ดาวน์โหลดข้อมูลมากเกินความจำเป็น
ข้อมูลเพิ่มเติม
ดูข้อมูลเพิ่มเติมเกี่ยวกับ Android Studio ซึ่งรวมถึงข้อกำหนดของระบบ ลิงก์ดาวน์โหลด และคู่มือผู้ใช้ได้ที่หน้า Android Studio
[[["เข้าใจง่าย","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 UTC"],[],[],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."]]