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

Unable to find Java & Android SDK - Google Play Services in Unity

Discussion in 'Editor & General Support' started by bernardp, Jun 13, 2019.

  1. bernardp

    bernardp

    Joined:
    Apr 28, 2017
    Posts:
    23
    EDIT: FOUND A FIX, CHECK TWO POSTS BELOW

    I downloaded unity package for google play services. After installing the package I opened up the window for Android configuration but after putting in the Resource definition, I get several errors: that Java and Android SDK is missing and that XML resource is not correct. I have the latest Unity version and when installing, it also installed Java and Android automatically, I didn't need to download any JDKs from java and android websites.

    What am I missing??

     
    Last edited: Jun 15, 2019
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,640
    Newest Unity that you downloaded is which version exactly?
    Go to Preferences -> External Tools and there you have to setup JDK and SDK. What are your current settings in there?
     
  3. bernardp

    bernardp

    Joined:
    Apr 28, 2017
    Posts:
    23

    FOUND A FIX:

    Seems like the Google games service unity package REQUIRES a full path to the JDK, Android SDK & Android NDK to function properly.

    JDK, SDK and NDK were all installed automatically with Unity 2019.1.2f1 because it also included Unity Hub that has options for automatic installation of Android & Java SDKs.

    In my case, I had to go Edit --> Preferences --> External tools and UNCHECK checkboxes for Java JDK, Android SDK and Android NDK. After you uncheck the boxes, the textfield will show file paths for each of those SDKs.

    upload_2019-6-15_13-11-54.png

    After that, I just went to Google Play android setup, clicked 'Setup' and everything worked!
     
  4. jakobherlitz

    jakobherlitz

    Joined:
    Mar 13, 2019
    Posts:
    2
    Thank you so much - pretty annoying that it needs an explicit path but oh well
     
  5. Guillaumzed

    Guillaumzed

    Joined:
    Mar 29, 2015
    Posts:
    70
    thank you so much, still working now with unity 2019.2.9f1
     
  6. tobKR

    tobKR

    Joined:
    Aug 2, 2018
    Posts:
    1
    One of the more stupid fixes I have seen, but it works. And I have seen many fixes for this, since it has never worked out of the box, and it always breaks again with every new version of unity...

    But one day,
    One very special day,
    The chosen one will come.
    And he will track the issue down,
    And he will find the final fix.

    And it will work.
    Finally it will work as expected.
    Yes, it will work,
    As it was once written
    In the docomentation!
    Out of the box.

    It will work.
    Out of the box.[/QUOTE]

    Edit: formatting
     
    Last edited: May 13, 2020
    NestorOk and ole_unity578SKI like this.
  7. unity_wRbNsLt2-lofmA

    unity_wRbNsLt2-lofmA

    Joined:
    Aug 18, 2020
    Posts:
    2
    Thanks bernardp u really saved my day. U r the legend.