Book Image

Android NDK: Beginner's Guide

By : Sylvain Ratabouil
Book Image

Android NDK: Beginner's Guide

By: Sylvain Ratabouil

Overview of this book

Table of Contents (18 chapters)
Android NDK Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Setting up a Gradle project to compile native code


Android Studio is now the new officially supported Android IDE, in place of Eclipse. It comes with Gradle, which is the new official Android build system. Gradle introduces a Groovy-based specific language to define the project configuration easily. Although its support of the NDK is still preliminary, it keeps improving and is becoming more and more useable.

Let's now see how to create an Android Studio project with Gradle that compiles native code.

Note

The resulting project is provided with this book under the name Store_Gradle_Auto.