- Building Android Games with Cocos2d-x
- Raydelto Hernandez
- 192字
- 2021-07-23 19:46:32
Setting up the Android Native Development Kit
We have already downloaded the Android SDK that allows you to create Android applications using the Java Technology; nevertheless, the Cocos2d-x framework is written in C++, so you will need the Android Native Development Kit (NDK) in order to build the C++ code for the Android platform.
Note
Android's official documentation clearly states that you should use this native kit for specific circumstances, but you should not use it just because you are familiar with the C++ language, or because you want your application to perform faster. The manufacturer makes this suggestion because the Android core API is only available for Java.
Download the latest NDK revision. At the time this book was written, it was 10d. This version of NDK will allow you to build for all the Android platforms, including the latest.
You can download the latest version of the Android NDK for all the platforms from the following link:
https://developer.android.com/tools/sdk/ndk
After downloading it, run the executable file. It will decompress the Android NDK directory on the current path; you need to be aware of this path since you will need it later.
- JavaScript 從入門到項目實踐(超值版)
- 零起步玩轉掌控板與Mind+
- TestNG Beginner's Guide
- 新手學Visual C# 2008程序設計
- 深入淺出RxJS
- 青少年信息學競賽
- Kivy Cookbook
- 遠方:兩位持續創業者的點滴思考
- 大數據時代的企業升級之道(全3冊)
- Go語言入門經典
- MySQL數據庫應用實戰教程(慕課版)
- Microsoft Exchange Server 2016 PowerShell Cookbook(Fourth Edition)
- Web開發的平民英雄:PHP+MySQL
- Flink核心技術:源碼剖析與特性開發
- Java 11 and 12:New Features