Can't find SDK folder inside Android studio pa

2020-02-23 06:30发布

I have installed Android Studio for the millionth time but when i go to C:\Program Files\Android\Android Studio , i can't find any folder named "SDK" , can't find it any where on the computer either. Also, the SDK manager doesn't open, which i guess is a problem linked to the first one.

15条回答
狗以群分
2楼-- · 2020-02-23 06:43

System: Ubuntu 16.04 LTS, yet you can try these steps in accordance to your respective systems.

If there is an SDK file present, it should be most likely found at /home/USERNAME/Android/sdk

USERNAME is to be replaced by your username

If there is none, check the specified sdk path for the project in android studio. File > Project Structure > sdk path

The sdk directory should be present in the specified path. In case, it is not there, open the file: PROJECT_DIRECTORY/android/local.properties

PROJECT_DIRECTORY needs to be replaced by your project name.

If the file is not there, create it. Then add the following line depending on where you find the sdk directory.

If sdk is there at /home/USERNAME/Android/: add the line: sdk.dir = /home/tanya/Android/sdk

If sdk is not there at /home/USERNAME/Android/: add the line: sdk.dir = /home/tanya/Android/

If the path specified for sdk directory in 'Project Structure' is entirely different and the sdk directory is present at the specified location, add the line: sdk.dir = SPECIFIED_SDK_PATH

Add the specified sdk path in place of SPECIFIED_SDK_PATH

查看更多
小情绪 Triste *
3楼-- · 2020-02-23 06:44

If you don't have it at C:\Users\%USERNAME%\AppData\Local\Android (this is where most people have it) than it is possible you don't have it installed. Go to Tools > Android > SDK Manager and then click on "Android SDK." On the top of the SDK Manager it will list the SDK Location. Click edit. If you don't have Android SDK installed, it will give you the option to install it in certain location. Install it, and Android Studio should work!

查看更多
疯言疯语
4楼-- · 2020-02-23 06:46

I had to open Android studio and go through the wizard. Android studio will install the SDK for you.

查看更多
▲ chillily
5楼-- · 2020-02-23 06:47

Tools > Android > SDK Manager > there you'll see the path to SDK

查看更多
淡お忘
6楼-- · 2020-02-23 06:48

If your are using android studio go to file >> project structure on the left pane press on SDK location . you will find the path where your sdk is located

查看更多
Evening l夕情丶
7楼-- · 2020-02-23 06:49

If you have downloaded the AS + SDK bundle:

Assuming the defaults were left unchanged, you will find the SDK in C:\Users\%USERNAME%\AppData\Local\Android

If it is missing at this location, one of the following reasons apply: you have chosen a custom location, you missed to install the SDK at all, or (unlikely) they have changed the default install location.

Note #1: the AppData directory is hidden by default. If you have a standard Windows configuration, the C:\ path above should work "as is" (hit Win + R -> paste the path -> Enter).

Note #2: you will never find the SDK in the Android Studio directory unless you have explicitly put it in there. The reason is that those directories might be deleted after installing a newer version of Android Studio and you would have to re-install the SDK as well.

If you have retrieved the standalone SDK by some other means:

The SDK location may vary (from my experience), however (assuming the default configuration) you will most likely find it in C:\Program Files\Android or C:\Users\%USERNAME%

查看更多
登录 后发表回答