So I've been trying to build my unity project for android, but my problem is that I don't know how to find the Android SDK. I have the old developer bundle installed, when it was still the one with eclipse, but this version is not supported by Unity. So, I installed the latest version of Android Studio, the new official Android IDE, but the SDK folder is not in the same place as the rest of the program. How would I find the SDK folder for Android Studio so I can build my Unity project?
the sdk may be hidden in the AppDatafolder (the folder itself was hidden).
If you want to look for AppData, but can't find it, open explorer and type %appdata%, press enter. It will show the hidden files. Path will look like this; C:\Users\Your.name\AppData\Local\Android\sdk1 Now that you have found the sdk, go back in to unity and click EDIT / Preferences / External Tools. You will see a field for Android SDK location - enter the path in that field.
File -> Other settings -> Default Project Structure menu invokes dialog box where you can see Android SDK Location.
~/Library/Android/sdk on MacOS and
~/Android/Sdk on Linux, according to this comment.
You must follow this thread and it works! I just renamed the old "tools" folder to "tools_old", downloaded the correct file from http://www.livecode-blog.de/forums/topic/android-sdk-installieren/#post-1056 and extracted the "tools" folder from the .zip file into SDK. After selecting the SDK folder (parent to "tools" folder), Livecode version 8.1.5 did compile the Android app without any more errors!
If you installed the SDK manually through command line, it's nice to know Unity asks for the root folder of the SDK, at least in Unity 2018.3.
So, if you installed it in
it's that folder what Unity asks for, and not
C:/sdk-tools-windows/platforms/android-28 for example. It took me a while to get it!
Go C:/user/username/appdata/local/sdk but some time it may be hiden if this floder hiden studio give error message like SDK tool directry missing
I went to "File > Project Structure > SDK Location" and checked "Use embedded JDK", and the error went away for me.