文章目录
一、Android SDK下载
官网(需翻墙):http://developer.android.com/sdk/index.html
Android Dev Tools
官网地址 (无需翻墙):http://www.androiddevtools.cn/
以Android Dev Tools
官网下载为例
1下载Android SDK Tools
进入 http://www.androiddevtools.cn/, 先找到SDK Tools
,下载最新的版本即可。选择zip
的,解压缩至目标路径位置即可
2 启动SDK Manager,勾选下载项,执行下载
(1) 双击SDK Manager
(2) Tools
的勾选Android SDK Tools、Android SDK Platform-tools和Android SDK Build-tools
(3) API的任意选择一个,考虑向下兼容原则,可以下载最新的API。
(4) Extras的全选
(5) 点击Install xx packages… 按钮,然后点Accept License,最后点Install按钮
3 如果无法下载 (若下载正常,则跳过此步)
如果无法下载,此时可采用有Android SDK
在线更新镜像的服务器来下载安装。
1 北京化工大学镜像服务器地址:
IPv4: ubuntu.buct.edu.cn/
,端口:80
IPv4: ubuntu.buct.cn/
,端口:80
IPv6: ubuntu.buct6.edu.cn/
,端口:80
2 大连东软信息学院镜像服务器地址: mirrors.neusoft.edu.cn
,端口:80
3 郑州大学开源镜像站: mirrors.zzu.edu.cn
,端口:80
使用方法:
1 启动 Android SDK Manager
,打开主界面,依次选择Tools
、Options...
,弹出Android SDK Manager - Settings
窗口
2 在HTTP Proxy Server
和HTTP Proxy Port
输入框内填入上面镜像服务器地址(不包含http://,如下图) 和端口
3 选中Force https://... sources to be fetched using http://...
复选框
4 单击Close
按钮关闭
5 依次选择Packages
、Reload
。
二、设置环境变量
(1) 新建一个系统环境变量,变量名为ANDROID_SDK_HOME
,变量值为你的SDK
安装路径
(2) 把%ANDROID_SDK_HOME%\platform-tools;%ANDROID_SDK_HOME%\tools
添加到Path环境变量中。
(3) 检测是否配置成功。打开命令行窗口,输入adb
。出现如下图所示内容则配置成功
三、在Unity中配置Android SDK安装路径
菜单: Edit - Preferences - External Tools
, 选择Android SDK
路径
四、NDK下载
https://developer.android.google.cn/ndk/downloads/
每个Unity版本要求的ndk版本对照表
https://docs.unity3d.com/Manual/android-sdksetup.html
最新LTS版本r21d
https://dl.google.com/android/repository/android-ndk-r21d-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r21d-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r21d-linux-x86_64.zip
最新稳定版本r22
https://dl.google.com/android/repository/android-ndk-r22-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r22-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r22-linux-x86_64.zip
历史版本:
https://dl.google.com/android/repository/android-ndk-r20b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r20b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r20b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r20b-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r19c-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r19c-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r19c-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r19c-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r18b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r18b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r18b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r18b-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r17c-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r17c-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r16b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r16b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r16b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r15c-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r15c-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r15c-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r14b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r14b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r14b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r14b-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r13b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r13b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r13b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r12b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r12b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r11c-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r11c-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r11c-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r10e-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r10e-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r10e-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64.zip