'what is different between ANDROID_HOME & ANDROID_SDK_HOME
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?
Solution 1:[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.
Solution 2:[2]
Seems like the accepted answer is no longer valid. The current docs say:
ANDROID_SDK_ROOT, which also points to the SDK installation directory, is deprecated.
Source table: https://developer.android.com/studio/command-line/variables#envar
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Community |
Solution 2 | keponk |