CentOS命令行安装 Android SDK 和 Android NDK

Android SDK

Android SDK 官方主页:https://developer.android.com/studio/index.html

1
2
3
4
5
6
7
8
9
# wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
# unzip -q -d ./ sdk-tools-linux-3859397.zip
# cd tools
# bin/sdkmanager --help
# bin/sdkmanager --list
# bin/sdkmanager --sdk_root=/data/Android/Android-Sdk "build-tools;27.0.3"
# bin/sdkmanager --sdk_root=/data/Android/Android-Sdk "platforms;android-26" "platforms;android-27"
# bin/sdkmanager --sdk_root=/data/Android/Android-Sdk "extras;android;m2repository"
# bin/sdkmanager --update --sdk_root=/data/Android/Android-Sdk

Android NDK

Android NDK 官方主页:https://developer.android.com/ndk/downloads/index.html

1
2
3
4
5
6
7
8
9
10
# wget https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip
# mkdir Android-Ndk
# unzip -q -d ./Android-Ndk/ android-ndk-r16b-linux-x86_64.zip
# /data/Android/Android-Ndk/android-ndk-r16b/ndk-build -version
GNU Make 3.82
Built for x86_64-redhat-linux-gnu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :