官术网_书友最值得收藏!

Installing Android SDK (using the Android command-line tool)

  1. Navigate to the Android Studio page and download the command-line tools (for more information visit this link: https://developer.android.com/studio/index.html?hl=sk).
  2. Once downloaded, extract the same in a folder of your choice.
  3. Rename the extracted file, for your convenience, to Android SDK.
  4. Android SDK contains only the basic SDK tools and does not contain any platform or library; we need to download the same before we start using it:
    1. Launch the terminal and navigate to the folder where the ZIP file was extracted. In the terminal, type android and press enter.
    2. Android SDK Manager will start with a new window.
    3. Select one of the android platform Android  7.0 (API 24) and choose the given packages: ARM EABI v7a System Image, Intel x86 Atom System Image, and SDK Platform.
    4. Under the Tools section, select Android SDK, Android SDK Platform-tools, and Android SDK Build-tools.
    5. Under the Extra section, select Google Play Services.
  1. Open the .bash_profile file and enter the following lines at the bottom:
      export ANDROID_HOME={YOUR_PATH}
export PATH=$PATH:$ANDROID_HOME/tools:
$ANDROID_HOME/platform-tools
  1. Save the file and run this command:
      source ~/.bash_profile 
  1. Run the next command to check whether the Android home is set properly:

      echo $ANDROID_HOME
主站蜘蛛池模板: 和田市| 荣成市| 美姑县| 绵阳市| 安龙县| 延吉市| 漳浦县| 宁城县| 马龙县| 田东县| 庆安县| 体育| 桐乡市| 玉田县| 正阳县| 绥滨县| 晴隆县| 高尔夫| 镇巴县| 阳朔县| 崇礼县| 利川市| 沙湾县| 辉南县| 京山县| 清水县| 石楼县| 阳朔县| 仪陇县| 朝阳市| 琼海市| 和政县| 扶余县| 宜州市| 上蔡县| 武鸣县| 永德县| 和田县| 定边县| 五家渠市| 长岭县|