当我从Android Studio打开Android SDK管理器时,SDK路径显示为:
\android-studio\sdk
我想改变这条路径。我该怎么做?
当我从Android Studio打开Android SDK管理器时,SDK路径显示为:
\android-studio\sdk
我想改变这条路径。我该怎么做?
当前回答
你也可以创建环境变量ANDROID_HOME(在Windows中)到Android SDK的位置,Android Studio将使用它。
其他回答
这里有一些方法,据我所知。
Android Studio 3.3.2(测试正常)
方法:1
只是按照官方文档的步骤,如下面的链接所示
https://developer.android.com/studio/intro/studio-config#jdk
方法:2
以下步骤的屏幕快捷方式,如下所示
方法:3
以下步骤的屏幕快捷方式,如下所示
下面是如何在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应该可以解决这个问题。
简单的答案肯定有效……
步骤1:右键单击项目>>选择打开模块设置——> 第二步:从下图右侧选择SDK位置
步骤3:现在从您的计算机浏览SDK位置,如下所示…
第四步:单击“确定”。
从Android Studio 1.0.1
去
文件->项目结构变成项目结构 左-> SDK位置 SDK位置选择Android SDK位置(旧版本使用按+,添加另一个SDK)
当我在Android Studio 3.1.4上遇到这个问题时,解决方案是进入我的项目上的应用程序下拉菜单,然后编辑配置>默认> JAR应用程序,在初始配置选项卡上有一个JRE框。将其设置为JRE路径为我解决了这个问题。