android工具环境变量设置

2022-07-16 17:18:16 浏览数 (1)

jdk

jdk-down

环境变量

````vim ~/.bash_profilevim ~/.zshrc //要是使用zsh就编辑zshrc

#在后面追加JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Homeexport JAVA_HOMEexport PATH=JAVA_HOME/bin:PATH

source ~/.bash_profilesource ~/.zshrc

$java -version

```

sdk中带的工具

mac:

export PATH=$PATH:/Users/xx/Library/Android/sdk/emulator

export PATH=$PATH:/Users/xx/Library/Android/sdk/build-tools/28.0.0

export GRADLE_HOME=/Applications/AndroidStudio.app/Contents/gradle/gradle-4.10.1

export PATH=PATH:GRADLE_HOME/bin

export PATH=$PATH:/Users/xx/Library/Android/sdk/tools/bin

export PATH=$PATH:/Users/xx/Library/Android/sdk/tools

export PATH=$PATH:/Users/xx/Library/Android/sdk/ndk-bundle

win:

adb C:UsersxxAppDataLocalAndroidSdkplatform-tools

以上根据你的实际环境修改

0 人点赞