当我从Android Studio打开Android SDK管理器时,SDK路径显示为:
\android-studio\sdk
我想改变这条路径。我该怎么做?
当我从Android Studio打开Android SDK管理器时,SDK路径显示为:
\android-studio\sdk
我想改变这条路径。我该怎么做?
当前回答
我这样配置
on
欢迎来到Android Studio Screen
单击“配置然后”
项目默认值,然后是项目结构
然后 Android SDK和选择到我当前位置的Android SDK的路径
其他回答
我这样配置
on
欢迎来到Android Studio Screen
单击“配置然后”
项目默认值,然后是项目结构
然后 Android SDK和选择到我当前位置的Android SDK的路径
在Android studio 1.2.2中,您可以简单地更改基于项目的SDK, 步骤:
右键单击“模块”,选择“打开模块设置”或按F12 从左边选择SDK位置 现在,您可以从这个页面更改SDK位置和JDK位置
在Android Studio 2.2.3中,我认为你可以从顶部菜单更改所有项目的默认SDK位置:
文件->项目结构…
出现如下所示的窗口:
下面是如何在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应该可以解决这个问题。
虽然上面的许多答案都可以达到目的,但我们可以在项目本身中做一件直接的事情。
在Eclipse中,进入Window->Preferences,从左侧菜单中选择“Android”。在右边的面板上,你会看到“SDK Location”。在这里提供路径。
祝你好运。