Game Development Reference
In-Depth Information
Click File ➤ New Project wizard to make sure the Android plug-in has been successfully
installed. If so, you should see a folder to create an Android project, as shown in Figure 1-2 .
Figure 1-2. New Project wizard showing the Android options after final configuration
Android Studio 1.0.1 is ready for use. Now let's install the NDK.
Installing the Native Development Kit
The NDK is the critical component for creating great games. It provides all the tools
(compilers, libraries, and header files) to build apps that access the device hardware natively.
As we said earlier in this chapter, when this manuscript was written, NDK and JNI were not
supported by Android Studio so NDK and JNI must be used with the Eclipse IDE for Java
Developers and Android SDK Tools.
Note The NDK site is a helpful resource to find step-by-step instructions, API descriptions,
changes, and all things related to native development. It is a must for all C/C++ developers. Go to
http://developer.android.com/sdk/ndk/index.html .
The NDK installation requires two simple steps: downloading the NDK and installing Cygwin
(a free tool to emulate a Linux-like environment on top of Windows, but more on this in the
next sections).
 
Search WWH ::




Custom Search