Android SDK path on Mac missing

柔情痞子 提交于 2020-12-29 15:43:30

问题


Currently running Android Studio 2.1.2 on Mac OS X El Capitan. I'm trying to locate the path of the Android SDK; when I go to File -> Project Structure to check the Android SDK location, I get the following:

/Users/username/Library/Android/sdk

However, I can't find this folder on my system, there's no 'Library' folder under my user directory? I also tried showing hidden files but that didn't help. I'm pretty new to Android development so any help would be appreciated, thanks.


回答1:


Library is a hidden folder. If you open Finder and click the Go menu and hold the Option key you'll see it there.




回答2:


DON'T PANIC

You can find it by doing some simple steps.
In the beginning you have to make hidden files visible on your Mac(because SDK folder located in another folder which is hidden) to do this, you have to open Terminal and simply copy and paste this line in there and press Enter:

defaults write com.apple.finder AppleShowAllFiles YES

Like this picture:

We use this to make your hidden files visible. Don't worry!!! you can UNDO this just by writing "NO" instead of "YES"

Ok we almost there! keep up the good job 😊 This step is about to finding the SDK folder and is not difficult! The Library folder located in the current user directory, like this picture:

Sometimes Library folder stays still hidden or hidden files remains permanently visible, so use these keys together to make them hidden or visible:

SHIFT + CMD + .

Then you will see the windows refreshed and you see the Library folder like so:

Hope you find this useful, otherwise just ask your question in the comments :)




回答3:


Library folder is hidden

Unhide it by press Command+Shift+ command.




回答4:


defaults write com.apple.finder AppleShowAllFiles YES 

did not work for me.

Solution: Finder(open Finder)->Go(select Go menu)->Home Right click on free place -> Show view options -> Show Library Folder (on my Sierra 10.12 it is the last checkbox) select.

That's all: Library folder becomes regular folder (according to look) and accessible from other applications (in my case from Android Studio).




回答5:


This helped me, I tried this in Mac OS X El Captian 10.11.6

  1. In the Finder, choose to Go > Go to Folder

  2. In the Go To Folder dialog box, type ~/Library

  3. Click Go.



来源:https://stackoverflow.com/questions/38905253/android-sdk-path-on-mac-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!