官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 沭阳县| 岳普湖县| 丰原市| 东乡| 门头沟区| 松溪县| 海丰县| 湘阴县| 聊城市| 光泽县| 吴旗县| 五常市| 嘉鱼县| 察隅县| 蓝山县| 昌平区| 武汉市| 巴林左旗| 衡阳市| 英山县| 土默特左旗| 榆社县| 柳河县| 黔南| 惠安县| 黄大仙区| 夹江县| 惠东县| 大竹县| 左云县| 宣武区| 交城县| 恭城| 中卫市| 塔河县| 元谋县| 香格里拉县| 蓬莱市| 西宁市| 庆阳市| 临邑县|