The NDK configuration tutorial for Android Studio under Mac (ii)

Source: Internet
Author: User

The NDK configuration tutorial for Android Studio under Mac (ii) (i) Brief description

From the previous NDK configuration tutorial (i), I briefly explained the basic decompression and environment configuration steps for the NDK under Mac.

In this section I'll describe in detail the configuration run steps of Android Studio under Mac.

(ii) Start

First, we go to the last extracted NDK file path and use Android studio to import Hello-jni
When the import is complete, as will automatically help us build the grade version.
Wait for completion, build completed.

Open File Directory

We add a sentence under the Local.properties file to:

ndk.dir=/Applications/Android-NDK/android-ndk-r10e

This is based on your own settings and changed to your NDK path.

Click Compile, if no run error occurs, the configuration is complete.

Click to run, the phone on the normal hello-jni words. Description the configuration was successful.

Tip Note:
1. Run the NDK test program, it is not recommended to use genymotion, because the kernel version problem, the NDK program will appear to be unable to run.
2. Try to debug the NDK program using the real machine.
3. You can use the Run simulator to turn on the Intel acceleration effect.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. (reproduced please specify from Allencoder)

The NDK configuration tutorial for Android Studio under Mac (ii)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.