what is different between ANDROID_HOME & ANDROID_SDK_HOME

天涯浪子 提交于 2021-02-08 15:22:18

问题


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 in ANDROID_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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!