Using the NDK with Android* Studio

Using the NDK with Android* Studio

While the editor of choice regarding C++ for Android* right now is eclipse*, Android Studio is starting to integrate the NDK as well.

C/C++ code edition isn’t well supported yet by Android* Studio but gradle can now make calls to the NDK directly. This integration allows you to get rid of Makefile to set everything in build.gradle, and the built-in feature of build flavors and variants is really worth it especially if you’re building one APK per CPU architecture. This screencast will give you an in-depth view of how this integration works by integration C/C++ code into your Android app or library and use build flavors to generate APKs tailored for each CPU architecture. An equivalent of this content for eclipse can be found here:

Scarica video

1280X720 (21.11 MB)

Per informazioni più dettagliate sulle ottimizzazioni basate su compilatore, vedere il nostro Avviso sull'ottimizzazione.