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

\android-studio\sdk

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


当前回答

点击——>文件——>关闭当前项目。

Android Studio主页

单击“配置”->项目默认值->项目结构 单击左边栏中的SDK Location并复制路径。 粘贴路径在我的电脑->右键单击->属性->单击高级系统设置->环境变量并更改android主路径。 点击“OK”保存会话。 在路径中添加工具和平台工具并保存更改。 打开命令提示符[window+R],输入adb + enter。

其他回答

尝试这种方式,我尝试在Android Studio 2.0 步骤1:File->Settings 步骤2:设置->SDK选项 第三步:单击Sdk Location中的Edit选项 步骤4:显示“SDK组件设置” 第五步:在“SDK组件向导”中点击三个“…” 步骤6:选择新的SDK路径

对于项目默认:

关闭当前项目(File->关闭项目)

你会得到一个欢迎到Android Studio对话框。在这:

单击“配置”->项目默认值->项目结构 单击左边栏中的SDK Location 将Android SDK的路径放在“Android SDK location”字段中。

(示例SDK位置:C:\android-sdk;我有子文件夹 C:\android-sdk下的插件,平台等)

单击OK保存更改 玩得开心!

以下步骤适用于旧版本(<1.0)的Android Studio

在中间一栏单击Android SDK(带有Android图标),如果你没有看到带有Android图标的条目,则单击顶部的+。 更改SDK Home Path并选择有效的Target。

下面是如何在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 3.3.2(测试正常)

方法:1

只是按照官方文档的步骤,如下面的链接所示

https://developer.android.com/studio/intro/studio-config#jdk

方法:2

以下步骤的屏幕快捷方式,如下所示

方法:3

以下步骤的屏幕快捷方式,如下所示

我这样配置

on

欢迎来到Android Studio Screen

单击“配置然后”

项目默认值,然后是项目结构

然后 Android SDK和选择到我当前位置的Android SDK的路径