[OS X] Unable to select Android SDK folder because it ends with .app
I'm running OS X Yosemite and the dialog to select the root folder of the Android SDK has all non-folders disabled. The folder ends in .app so it's not selectable as a folder in that dialog window. I've tried symbolic links and the OS still sees it as a non-folder so I'm unable to select it.
What's the fix for this?
Thank you!
Did you download android studio by mistake? What is the file name with the extension .app?
@tanoshimi, when you build an android apk in unity and the sdk isn't recognized a dialog will display titled (Selecte Android SD$$anonymous$$ root folder" and ask you to locate it.
@joshrenaud, you may need to download the real SD$$anonymous$$ without android studio: http://dl.google.com/android/android-sdk_r24.0.2-macosx.zip
I hope you can deal with the install manually.
None direct link: https://developer.android.com/sdk/index.html
Tanoshimi - We are in a forum for Unity development so the context of this is that I'm running Unity for OS X and trying to compile for Android. In order to compile for Android, you have to select the location of the Android SD$$anonymous$$ in the Unity prefs.
@tanomishi I understand. @Landern I removed Studio and download the SD$$anonymous$$ tools, then ran the Android SD$$anonymous$$ $$anonymous$$anager executable. I'm installing the default items now. Do you know where I might find documentation of which specific packages need to be installed for compiling from Unity?
Answer by Ivanthebestunitydev · Jan 13, 2015 at 07:13 AM
Had the same problem with link. 1. First of all you should have access to "Library" folder in your mac. Simply run this "chflags nohidden ~/Library/" or more detailed here http://osxdaily.com/2011/07/22/access-user-library-folder-in-os-x-lion/. 2. Now you can use link /Users/YourName/Library/Android/sdk
Hope that helped.
"chflags nohidden ~/Library/" ← This worked for me as well (ran with 'sudo')
Answer by chirpytime · Jan 17, 2015 at 08:41 AM
Alternatively (without making any permission changes): 1. Open the folder in finder using Applications/Utilities/Terminal, with command "open /Users/USER_NAME/Library/Android/sdk". 2. Go to Unity -> Preferences ( cmd + , ) -> External Tools -> Android SDK Location and hit the "browse" dropdown. 3. Drag the "sdk" folder from Finder (opened in step 1), into Unity's "Select Android SDK root folder" popup.
Is it just me, or is it ridiculous that you need this level of craziness to access the location of the SD$$anonymous$$ for Unity? Why don't they populate it with the default?
Thank you so much. If you change from iOS to Android, and back again, for some reason this setting disappears. So I keep on checking your solution!!
Answer by Landern · Dec 31, 2014 at 10:19 AM
@joshrenaud, you can find that information in the Unity Manual and topic Android SDK.
And @tanoshimi is right, we get a LOT of unrelated questions and silly requests, we do need to dial the posts in WAY WAY to often.
Hope you find what you need.
Answer by itslennysfault · Aug 11, 2017 at 06:52 AM
I hit this problem and none of the other suggestions worked for me. I got frustrated and kinda gave up on it, and decided to just try to build it for Android so I could at least see it on my phone.
I went to File > Build Settings.... Set it to Android and clicked Build and run...
This caused it to try to connect to the android device which helped me debug the connection. First it said it couldn't find the device so I unplugged it and plugged it back in then clicked "Retry". After that it told me my android SDK was out of date, and asked if I wanted to upgrade it automatically. I clicked yes. Then, it detected some other errors in my android settings in Unity. I fixed those. After that, the apk build failed with some weird errors.
However, I thought maybe all those fixes might've fixed the remote so I closed the build dialog and clicked play. Suddenly, remote was working great! Hope this can help someone else.