How to Set-up Android SDK path for Unity 3d 4.1.0f4?

Hi, I’m using unity 4.1.0f4 and when I select build settings. Then select android,then placed in a name for the apk, I’m ask to select Android SDK root folder. now what does Unity 3d considers to be the Android SDK root folder? because ii’ve downloaded the SDK from http://developer.android.com/sdk/index.html which contains two sub folders and none of those worked for me as you can see in the pictures.

so please help me anticipating thanks





Just install Android SDK Tools r21 from here: http://dl.google.com/android/installer_r21-windows.exe

and install Android 4.2.2 (API 17) from Android SDK Manager

that work for me

1 Like

In my case, I simply extracted the file, and then pointed to the entire "sdk directory where it was. Also, did you try selecting it from Edit → Preferences → External tools?

If you get the JDK error, on the other hand, I can give more precise instructions on how to fix that. But that probably comes after fixing this. Also, did you get an application called “SDK Manager” that exists next to the sdk and eclipse directories (if you downloaded the same package type)?

On my Mac with Unity 4.3 you can access the configuration on Unity => Preferences => External tools

I know this is an old thread but since it took me literally an hour to figure this out I thought I’d help anyone else having trouble. I was running Android Studio 1.2.1.1…

  • Open the android studio and create a new project
  • Name the project and note the “bundle identifier” as it will be needed later
  • In the android studio software click on Tools
  • Click Android
  • Click SDK Manager
  • the SDK path will be noted at the top of the new window
  • Open Unity and go to your game’s build settings, select android and swap platform
  • Click Player Settings > expand “Other Settings”
  • Under "PlayerSettings.bundleIdentifier put in whatever name you originally put in for the android project
  • then build the game and you should browse to your sdk file path you got to earlier when it prompts for it, it’s worth noting you can save the .apk build file wherever, but I guess it needs the android studio sdk to build the file.

3 Likes

That was perfect