如何移动随Visual Studio 2017安装的Android SDK文件夹? [英] How do I move the Android SDK folder installed with Visual Studio 2017?

查看:442
本文介绍了如何移动随Visual Studio 2017安装的Android SDK文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在其默认路径(C驱动器)中安装了VS 2017,但是由于C:\Users\USERNAME\Local\Android处的Android文件夹较大,因此它占用了我的大部分驱动器空间.该文件夹是由VS 2017安装程序自动创建的.如何将其移动到另一个驱动器并让VS检测到它?

I've installed VS 2017 in its default path (C drive) but its used up most of my drive space due to the large Android folder at C:\Users\USERNAME\Local\Android. This folder was auto created by the VS 2017 installer. How do I move it to another drive and have VS detect it?

我已经尝试过这些解决方案,但它们在VS 2017中不起作用.

I've tried these solutions and they don't work with VS 2017.

  • How to make Visual Studio 2015 installer know that I already have Android SDK?
  • Moving default AVD configuration folder (.android)

推荐答案

我终于找到了答案.更改ANDROID_SDK_HOME环境var无效.唯一的方法是手动移动文件夹,然后在选项">"Xamarin">"Android设置"下更改"Android SDK路径"设置.

I found the answer at last. Changing the ANDROID_SDK_HOME environment var had no effect. The only way is moving the folder by hand, and then changing the Android SDK path setting under Options > Xamarin > Android Settings.

这篇关于如何移动随Visual Studio 2017安装的Android SDK文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆