1. 下载(以实际版本为准)JavaForOSX2014-001.dmg、JavaForOSX2014-001.dmg、adt-bundle-mac-x86_64-20140702.zip、android-ndk-r10d-darwin-x86_64.bin

  2. 安装JavaForOSX2014-001.dmg、JavaForOSX2014-001.dmg

  3. 解压adt-bundle-mac-x86_64-20140702.zip到/Android/adt-bundle-mac-x86_64-20140702

  4. 解压android-ndk-r10d-darwin-x86_64.bin到/Android/adt-bundle-mac-x86_64-20140702/android-ndk-r10d

  5. open -e .bash_profile
    输入:
    export PATH=${PATH}:/Android/adt-bundle-mac-x86_64-20140702/android-ndk-r10d
    A_NDK_ROOT=/Android/adt-bundle-mac-x86_64-20140702/android-ndk-r10d

  6. source .bash_profile 重新加载配置


    ok!搞定了

  7. 测试一下
    *****deMBP:~ luowei$ ndk-build -version
    GNU Make 3.81
    Copyright (C) 2006  Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.

你可能感兴趣的文章

评论区

发表评论

必填

选填

选填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。