问题
I have 2 directory that look same,
ANDROID_HOME=C:\Android\sdk
ANDROID_SDK_HOME=C:\Users[user]\AppData\Local\Android\Sdk
whats the different? can I set it in one dir?
回答1:
Based on the documentation:
ANDROID_HOME
ANDROID_HOME
, points to the SDK installation directory. This has been deprecated, use ANDROID_SDK_ROOT
instead.
If you continue to use it, the following rules apply:
- If
ANDROID_HOME
is defined and contains a valid SDK installation, its value is used instead of the value in ANDROID_SDK_ROOT.- If
ANDROID_HOME
is not defined, the value in ANDROID_SDK_ROOT is used.- If
ANDROID_HOME
is defined but does not exist or does not contain a valid SDK installation, the value inANDROID_SDK_ROOT
is used instead.
ANDROID_SDK_HOME
The root of the user-specific directory where all configuration and AVD content is stored
can I set it in one dir?
Ideally you shouldn't, since they serve different purpose.
来源:https://stackoverflow.com/questions/50520656/what-is-different-between-android-home-android-sdk-home