当我从Android Studio打开Android SDK管理器时,SDK路径显示为:

\android-studio\sdk

我想改变这条路径。我该怎么做?


当前回答

你也可以创建环境变量ANDROID_HOME(在Windows中)到Android SDK的位置,Android Studio将使用它。

其他回答

下面是如何在android studio中更改android sdk路径:

Open your required android project in Android studio Click on the main project folder and press F4 Now click on "SDKs" under Platform Settings (Left hand side of the dialog box) You should now see a plus sign on the top, click it and choose "Android SDK" Now you would be asked to choose the required SDK folder Select the required build target(if necessary) and click "ok" Now you should see the new entry in the list of SDKs Click "Modules" under Project Settings Select your project folder and in the Dropdown for "Module SDK", select the new SDK entry and click "apply" Now click "OK" and your done.

注意:如果更改没有生效,重新启动android studio应该可以解决这个问题。

这就是它是如何做到的,在Android Studio的windows

Done

从回答来看,我猜人们没有理解你的问题……如果我是正确的,你想要有~\Desktop\github\然后改变SDK的位置不是你所追求的。

来自Android Studio 3.2.1: 在新项目对话框中,选择 配置—>首选项—>工具—>终端—>开始目录

将您想要作为项目默认值的文件夹放在该字段中。

我的设置为 ~ /桌面/ github / 因为我所有的工作都完成了 ~ /桌面/ github /

尤利卡:我找到了!

在当前的Studio 1.3中,每个项目都有一个本地。属性文件,你可以编辑SDK!

在Android Studio 2.2.3中,我认为你可以从顶部菜单更改所有项目的默认SDK位置:

文件->项目结构…

出现如下所示的窗口: