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. Dismiss Notice

Android SDK/Java JDK configuration problems.

Discussion in 'Editor & General Support' started by Futurespaceghost, Mar 17, 2017.

  1. Futurespaceghost

    Futurespaceghost

    Joined:
    Jul 5, 2013
    Posts:
    11
    Working on my first mobile game in unity. A simple flappy bird clone to get used to the workflow. The first step is to add the Android SDK and Java JDK.
    So I've downloaded both yet they wont configure with unity when i goto Unity > prefences > extended tools (Im on a mac btw running Yosemite).

    When I downloaded the android SDK it was a zip file named "Tools" I selected it pressed choose and nothing happens the window just refreshes. Apparently i should be looking in my library for a folder named Android which has the SDK but theres no such file.

    With JDK i have no idea whats wrong. The directory is right: Library > Java > JavaVirtualMachines > JDK1.8.0_121.jdk
    But i still get an error reading "the path you specified does nit look like a valid JDK installation."

    This is really confusing. The error for JDK also says that Android dev requires atleast JDK 7 but i have version 8. Is this a unity upgrade problem? Im still using unity 5.4.

    Im a complete noob so any idea as to what my problem is is appreciated
     
  2. vivacurtopia

    vivacurtopia

    Joined:
    May 22, 2017
    Posts:
    2
    I am having this same problem...Help us:)
     
  3. festival

    festival

    Joined:
    Feb 3, 2011
    Posts:
    80
  4. TerryBogardChan

    TerryBogardChan

    Joined:
    Oct 20, 2015
    Posts:
    8
    i also get the error
     
  5. verybinary

    verybinary

    Joined:
    Sep 23, 2015
    Posts:
    373
    there should be software that you open to update the sdk, then you have to set its path, then install jdk, set the path, and let unity know where to find the tools folder.
     
  6. Jroel

    Jroel

    Joined:
    Oct 25, 2013
    Posts:
    14
    I had a time finding a legitimate link: https://dl.google.com/android/repository/tools_r25.2.5-macosx.zip

    Replace your current Android/sdk/tools folder with the link above and it tries to build. I'm still having some problems with incompatibilities with Java versions and such...

    EDIT:
    I was receiving: CommandInvokationFailure: Failed to build apk. UnityEditor.HostView:OnGUI()
    So, I could NOT use Java SE 9.0 SDK.. I had to use jdk1.8.0_151.jdk
    AND IT FINALLY RAN!!!! Sweet Baby Jesus!!!!

    https://answers.unity.com/questions/1323731/unable-to-list-target-platforms-please-make-sure-t.html
    https://stackoverflow.com/questions/42538433/not-finding-android-sdk-unity#
     
    Last edited: Dec 14, 2017