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

您所在的位置:网站首页 paint3d安卓下载 Unity发布Android时需要的Android SDK/NDK的下载

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

2023-03-15 16:06| 来源: 网络整理| 查看: 265

文章目录 一、Android SDK下载1下载Android SDK Tools2 启动SDK Manager,勾选下载项,执行下载3 如果无法下载 (若下载正常,则跳过此步) 二、设置环境变量三、在Unity中配置Android SDK安装路径四、NDK下载

一、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



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3