Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

cannot set Android SDK path.

Discussion in 'Android' started by nankaiine_ryu, Mar 20, 2020.

  1. nankaiine_ryu

    nankaiine_ryu

    Joined:
    Jan 26, 2016
    Posts:
    2
    Unity 2018.4.18f1
    Android Studio 3.6.1
    macOS Catalina 10.15.3


    I found the SDK path in "SDK Manager”.

    I entered it path in external tool -> Android-> SDK

    But, Unity asked for the location of the Android SDK Directory when build on Android

    And in Catalina, Library directory is not displayed and cannot be selected.

    Library directory is not displayed when Option is pressed.

    The following text is the message when I press Cancel


    Failed getting available Android API levels. Could not find Android SDK Tools.
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)


    What should I do?
     

    Attached Files:

  2. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    824
    Hi, in Android Studio you have to deselect "hide obsolete packages" and then to install Android SDK Tools (Obsolete).
     
  3. nankaiine_ryu

    nankaiine_ryu

    Joined:
    Jan 26, 2016
    Posts:
    2
    thanks

    i install Android SDK Tools (Obsolete).
    and
    set "Android 8.0 Oreo (API level 26)" to build setting -> Other Setting -> Target API Level

    sdk error is no longer displayed.

    but i cant build.

    my unity project build stops midway.
    it seems crashed.

    -------

    the below message was showed when i open my unity project.

    ```
    Job failed with exception: GooglePlayServices.JavaUtilities+ToolNotFoundException: jar not found, 2018.4.18f1/PlaybackEngines/AndroidPlayer/Tools/OpenJDK/MacOSdroidPlayer/Tools/OpenJDK/MacOS references incomplete Java distribution.
    ```

    what should i do?