How to set NDK Build path in OSX for Android studio

前端 未结 4 1338
走了就别回头了
走了就别回头了 2020-12-29 05:56

I had set the ANDROID_NDK_HOME as /Users/Shajilshocker/Documents/Android/NDK/android-ndk-r10b using a mac osx application called Enviro

4条回答
  •  無奈伤痛
    2020-12-29 06:09

    In case this helps anyone, I installed the Android NDK using Android Studio on MacOS by following the instructions on the android.com NDK webpage: I selected Tools --> Android --> SDK Manager and then selected NDK. Android Studio then installed the downloaded files under:

    /Users/user.name/Library/Android/sdk/
    

    That directory is the same one that is listed on the SDK Manager window inside Android Studio. Underneath that directory is another directory ndk-bundle, which has all the NDK tools.

    Thus, I added this to my path:

    /Users/user.name/Library/Android/sdk/ndk-bundle/
    

提交回复
热议问题