Configure the NDK development environment on mac. This article references other people's articles. detailed steps: 1. start Terminal 2. enter pico. bash_profile and press enter. 3. enter the following content [the path depends on the actual situation]: [php] e. This article references other people's articles and detailed steps:
I. start Terminal
2. enter pico. bash_profile and press enter.
3. enter the following content (the path depends on the actual situation ]:
[Php]
Export ANDROID_SDK_ROOT =/Users/apple/Desktop/adt-bundle/sdk
Export ANDROID_NDK_ROOT =/Users/apple/Documents/Android/android-ndk-r8e
Export PATH = $ PATH: $ ANDROID_SDK_ROOT
Export PATH = $ PATH: $ ANDROID_NDK_ROOT
Export ANDROID_TOOL =/Users/apple/Desktop/adt-bundle/sdk/platform-tools
Export PAHT = $ PATH: $ ANDROID_TOOL
Export ANDROID_SDK_ROOT =/Users/apple/Desktop/adt-bundle/sdk
Export ANDROID_NDK_ROOT =/Users/apple/Documents/Android/android-ndk-r8e
Export PATH = $ PATH: $ ANDROID_SDK_ROOT
Export PATH = $ PATH: $ ANDROID_NDK_ROOT
Export ANDROID_TOOL =/Users/apple/Desktop/adt-bundle/sdk/platform-tools
Export PAHT = $ PATH: $ ANDROID_TOOL
4. Note that the path should not contain spaces! After the input is complete, Control + x is saved, and then the system prompts whether to save it. enter y and press enter!
5. test the path step: close your terminal and re-open it. if there is a problem with the previous path configuration, the following prompt will appear when you re-open the terminal:-bash: exoort: command not found. If no such prompt is displayed, "OK" indicates that the path configuration is complete!
6. enter ndk-build. if the response is correct, the configuration path is successful.
7. cd to the project to be compiled, ndk-build, and compilation successful. OK.
Terminal 1. start Terminal 2. enter pico. bash_profile and press enter. 3. enter the following content [the path depends on the actual situation]: [php] e...