Mac下配置ndk/adb

来源:互联网 发布:彩虹自动发卡源码 编辑:程序博客网 时间:2024/06/10 08:47

1、配置ndk

<1>下载ndk

      http://tools.android-studio.org/

<2>配置

    # chmod 777 /etc/profile

   #  gedit /etc/profile 

   //添加配置

 NDK=/Users/xxx/eclipse/android-ndk-r10e

 export PATH=$NDK:$PATH

 # source /etc/profile

<3>验证

 # ndk-build -v

2、配置adb

 <1>在/etc/profile加入:

   export PATH=/Users/xxx/android-sdks/platform-tools:/Users/xxx/android-sdks/tools:$PATH

 <2>设置生效

  # source /etc/profile

0 0
原创粉丝点击