MAC 下安装NDK的问题,求解决

  • 按照过程配置了环境变量,打了ndk-build后提示
    Android NDK: Could not find application project directory !
    Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
    /Users/bobo/work/adt-bundle-mac-x86_64-20140702/android-ndk-r12/build/core/ *** Android NDK: Aborting . Stop.
    说明已经按照成功了,可是运行react-native run-android 后提示
    FAILURE: Build failed with an exception.

    • What went wrong:
      Execution failed for task ':react-native-update:compileReleaseNdk'.

    NDK not configured.
    Download the NDK from add ndk.dir=path/to/ndk in
    (On Windows, make sure you escape backslashes, e.g. C:\ndk rather than C:\ndk)