Time for action – compiling and deploying San Angeles sample

Let's use Android SDK and NDK tools to build a working APK:

  1. Open a command-line prompt and go to the San Angeles sample directory inside the Android NDK. All further steps have to be performed from this directory.

    Generate San Angeles project files with the android command:

    cd $ANDROID_NDK/samples/san-angeles
    android update project -p ./
    Time for action – compiling and deploying San Angeles sample

    Tip

    You may get the following error upon executing this command:

    Error: The project either has no target set or the target is invalid.
    Please provide a --target to the 'android update' command.
    

    This means that you have not installed all the Android SDK platforms ...

Get Android NDK Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.