Java 如何设置 ANDROID_HOME 环境变量?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19028978/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 13:32:40  来源:igfitidea点击:

How to set the ANDROID_HOME environment variable?

javaandroideclipsemavenenvironment-variables

提问by kramer65

For Maven to work properly I need to set the ANDROID_HOME variable to point to my SDK directory. I suppose the directory I need to set it to is "/Users/kramer65/dev/adt-bundle-mac-x86_64-20130917/sdk".

为了让 Maven 正常工作,我需要将 ANDROID_HOME 变量设置为指向我的 SDK 目录。我想我需要将其设置为“/Users/kramer65/dev/adt-bundle-mac-x86_64-20130917/sdk”的目录。

But my question: how do I set this variable?

但我的问题是:如何设置这个变量?

采纳答案by max.mustermann

Set environment variables on Mac OS X Lion

在 Mac OS X Lion 上设置环境变量

Here is explained how to set environmental variables in MacOS.

这里解释了如何在 MacOS 中设置环境变量。