Search Unity

Unity won't let me select an Android SDK root folder

Discussion in 'Android' started by CleanCut, Dec 11, 2018.

  1. CleanCut

    CleanCut

    Joined:
    Aug 19, 2013
    Posts:
    10
    I'm on macOS 10.14.1 (Mojave). I've installed Java 1.8 and I have installed the android tools and sdk's under `~/android`. When I try to build for android, I get a "Select Android SDK root folder". I navigate to `~/android/platforms` and select `android-28` and click on "Choose" and the dialog just closes and pops right back up. What am I missing, here? Edit: I'm using Unity 2017.3.0f3

    I've also tried installing versions 27, 26, 25, and 24 -- no change. I've also tried typing the path out in Unity's preferences, but it still pops up the dialog.

    I'm using the command line tools, and the command I use to install a version is (for example):

    tools/bin/sdkmanager "platform-tools" "platforms;android-27" "build-tools;27.0.3"




    upload_2018-12-11_15-23-14.png
     

    Attached Files:

  2. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    836
    You should point it to "~/android" as that's your SDK's root folder.
     
    CleanCut likes this.
  3. CleanCut

    CleanCut

    Joined:
    Aug 19, 2013
    Posts:
    10
    That was it! Thank you!

    I'm new to the forums. Is there a canonical way of marking posts as having been solved?