Unity发布Android时需要的Android SDK/NDK的下载

一、Android SDK下载
官网(需FQ):http://developer.android.com/sdk/index.html
Android Dev Tools官网地址 (无需FQ):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-toolsAndroid 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
————————————————
版权声明:本文为CSDN博主「林新发」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/linxinfa/article/details/88605815

posted @ 2023-01-17 12:28  匆匆,不惑之年  阅读(2950)  评论(0)    收藏  举报