- 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.
- 新編Visual Basic程序設(shè)計(jì)上機(jī)實(shí)驗(yàn)教程
- 精通搜索分析
- Responsive Web Design with HTML5 and CSS3
- Building a Quadcopter with Arduino
- Redis Essentials
- SharePoint Development with the SharePoint Framework
- Getting Started with Greenplum for Big Data Analytics
- “笨辦法”學(xué)C語(yǔ)言
- HTML5開(kāi)發(fā)精要與實(shí)例詳解
- HTML+CSS+JavaScript網(wǎng)頁(yè)設(shè)計(jì)從入門到精通 (清華社"視頻大講堂"大系·網(wǎng)絡(luò)開(kāi)發(fā)視頻大講堂)
- Java并發(fā)編程之美
- 深入解析Java編譯器:源碼剖析與實(shí)例詳解
- 算法秘籍
- 軟硬件綜合系統(tǒng)軟件需求建模及可靠性綜合試驗(yàn)、分析、評(píng)價(jià)技術(shù)
- 創(chuàng)新工場(chǎng)講AI課:從知識(shí)到實(shí)踐