Mac 下配置 Sdk ,Gradle

<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">Gradle ,SDK,NDK 配置</span>


下载Gradle:http://gradle.org/downloads/

下载完以后是一个zip包,随意解压到一个地方:/Users/Bob_ge/Documents/android_dev/gradle/gradle-2.4

配置环境变量:

touch .bash-profile

open -e .bash_profile

打开 bash_profile,配置环境变量。


export NDK_PATH="/Users/Bob_ge/Documents/android_dev/ndk/android-ndk-r10d"
export SDK_PATH="/Users/Bob_ge/Library/Android/sdk/platform-tools"
export GRADLE_HOME="/Users/Bob_ge/Documents/android_dev/gradle/gradle-2.4/bin"
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/ant/bin:/opt/reverse:${SDK_PATH}:${NDK_PATH}:${GRADLE_HOME}


更新 bash_profile ,source .bash-profile.

输入adb 

gradle -version

 检测是否配置正确




你可能感兴趣的:(mac,gradle)