Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
572 views
in Technique[技术] by (71.8m points)

android-studio - Android Studio - 如何更改Android SDK路径(Android Studio - How to Change Android SDK Path)

When I open Android SDK Manager from Android Studio , the SDK Path displayed is:

(当我从Android Studio打开Android SDK Manager时 ,显示的SDK Path是:)

android-studiosdk

I want to change this path.

(我想改变这条道路。)

How do I do it?

(我该怎么做?)

  ask by dira translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

for projects default:

(对于项目默认:)

1. Close current Project (File->Close project) (1.关闭当前项目(文件 - >关闭项目))

You'll get a Welcome to Android Studio Dialog.

(您将获得欢迎使用Android Studio对话框。)

In that:

(在那里面:)

2. Click on Configure -> Project Defaults -> Project Structure (2.单击配置 - >项目默认值 - >项目结构)

3. Click on SDK Location in the left column (3.单击左列中的SDK Location)

4. Put the path to the Android SDK in "Android SDK location" field. (4.在“Android SDK位置”字段中输入Android SDK的路径。)

( Example SDK location : C:\android-sdk ; I have sub-folders like add-ons , platforms etc under C:\android-sdk )

(( 示例SDK位置C:\android-sdk ;我在C:\android-sdk下有子文件夹,如add-onsplatforms等))

5. Click OK to save changes (5.单击“确定”保存更改)


6. Have fun! (6.玩得开心!)


Following steps were for older versions(<1.0) of Android Studio (以下步骤适用于Android Studio的旧版本(<1.0))

4. In the middle column Click on Android SDK (with Android icon) OR click + on the top if you don't see an entry with Android icon. (4.在中间列中单击Android SDK(带有Android图标)或如果没有看到带有Android图标的条目,请单击顶部的+。)

5. Change SDK Home Path and select valid Target (5.更改SDK Home Path并选择有效的Target)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...