Where is the Android SDK located ?

Hi,
i wanted to build the Aircraft Propeller scene for Gear VR, but can’t find the android sdk its asking for during build process. I was offered Android Studio when checking for the Android SDK online, so i installed it, but seems there is no from Build requested Android SDK in its folders.

Question, what to do now ?

Regards,
Frank

Does this help? Step five tells you which menu to configure this in in Unity. From memory the first time was a pain, but once it’s set up it’s set up forever.

ok thanks, the list is what i need :slight_smile:
I thought i already have installed the Android Studio with SDK bundle,

question, how can i see if the SDK is installed already ?

Has it possibly not been the SDK bundle ? I have this :

By default it’s under C:\Users%Username%\AppData\Local\Android.

3 Likes

k cool, the sdk is there. But now giving me a build failure : what to do here ?

1 Like

What’s the console giving for a detailed error message? Chances are you just need to alter the path a little.

this is the error message i get :

It didn’t ask for the android sdk path any more.
Not sure if i really have the sdk installed or if the existing sdk folders are just place holder or otherwise used.

still giving me error

i have installed Unity5.6 and Android Studio (with SDK) on a new Win10 install and receive the same error message when testing to build the standard scene with the racing car for Android :open_mouth:

What can go wrong so stabilely ?

That’s just the error message informing you of the problem. Like it mentions the actual details are in the console.

3050957--228920--console.png

ah ok thanks. Seems my path should be correct, JDK is also installed … hmp what then can go wrong with it ?

1 Like

Okay. I finally managed to reproduce the problem you were having. It turns out the latest release of Android Studio comes with a newer SDK (specifically the tools folder of the SDK) than Unity is capable of recognizing. Solving it simply requires replacing the tools folder in the SDK with an older release. I recommend just renaming the old folder.

http://dl-ssl.google.com/android/repository/tools_r25.2.5-windows.zip

5 Likes

wow great now it works ! thank you :slight_smile:

3 Likes

Thanks for posting that the SDK is under ~/AppData/Local. I installed Android Studio in its default location in C:\Program Files\Android, so I never in a million years would have thought the SDK was not somewhere under that hierarchy.

1 Like

Actually i have same problem
after downloading this ,what to do?

Like my post says you extract the files over the existing tools folder.

1 Like

So do i need to delete the original tools folder?

I managed to make it work by

  1. installing Android Studio
  2. starting it
  3. installing the SDK to a path WITHOUT spaces. (i.e. something like C:\Android\SDK) - I guess some part of the SDK got issues with spaces
  4. setting the Android SDK to this path in unity preferences

Build process runs fine afterwards

3 Likes

I got it working fine as well. Thank you so much for the steps bro!

1 Like

You can rename it to another folder name. My personal practice is to rename it to format YYYYMMDD_OriginalName (20180131_tools). Please attached photo. Make sure also that you let the Unity3D point to the correct directories for the SDK and JDK. You can set these inside “EDIT>PREFERENCES>EXTERNAL TOOLS”.
3374689--264690--scrn_shot.jpg

1 Like