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)