Search Issue Tracker

Fixed in 2018.3

Fixed in 2017.4, 2018.2

Votes

80

Found in

Issue ID

956425

Regression

No

Android builds fail with Java 9 JDK and Unable to list target platforms error

Android

-

With the latest public versions of Unity (2017.1.1f1), Android Studio/SDK tools(26.0.2), and JDK (Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode), Android builds failed early on with:

Error:Invalid command android
CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct.
See the Console for more details. Error building Player: CommandInvokationFailure: Unable to list
target platforms. Please make sure the android sdk path is correct. See the Console for more details.

A similar problem (same error message, but different cause) has been reported about 6 months ago: https://issuetracker.unity3d.com/issues/android-build-fails-when-the-latest-android-sdk-tools-25-dot-3-1-version-is-used

In my case, downgrading to JDK 8 fixed the problem.

Reproduced with:
2017.3.0b4, 2017.2.0f3, 2017.1.2f1, 5.6.3p4, 5.5.5f1

  1. Response avatar

    Yury-Habets

    May 18, 2018

    Unfortunately there are compatibility issues between JDK9 and JDK10 and Android SDK.
    The bugs have been reported to Google, we are working on a full-featured fix.
    As a workaround, for now please UNINSTALL JDK9/10 and INSTALL only JDK8 (64-bit).
    We apologize for the inconvenience caused.

    Feel free to check the status at the forums as well: https://forum.unity.com/threads/java-9-jdk-9-support-by-unity-android.499354/

Comments (87)

  1. A7d1c05eab4b1606dd2648ad099eeee6?d=mm

    fenoko

    Jul 08, 2020 18:50

    I was reading your article and wondered if you had considered creating an ebook on this subject. Your writing would sell it fast. You have a lot of writing talent.
    mental träning sport https://www.lonelyplanet.com/profile/hypnosterapin924341

  2. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 08, 2020 13:35

    Thank you for taking the time to publish this information very useful!
    over at this website https://maps.google.com.sv/url?q=https://www.throughalenz.com

  3. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 06, 2020 10:12

    This is my first time visit here. From the tons of comments on your articles,I guess I am not only one having all the enjoyment right here!
    navigate to this site https://images.google.com.pk/url?q=https://monsterlegendzfree.com

  4. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 05, 2020 13:01

    I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.
    Fildariane parents https://www.fildarianeparents.org

  5. 639416bc45a7e2bf82e0fac643f5afff?d=mm

    mairakhatrikhatri

    Jul 05, 2020 08:02

    Through this post, I know that your good knowledge in playing with all the pieces was very helpful. I notify that this is the first place where I find issues I've been searching for. You have a clever yet attractive way of writing. <a href="https://vfxindia.co.in/web-development-course-vfx-chennai/">Web Development Courses</a>

  6. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 05, 2020 06:28

    This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you.
    concrete contractors https://concreteinlubbock.com

  7. 639416bc45a7e2bf82e0fac643f5afff?d=mm

    mairakhatrikhatri

    Jul 04, 2020 13:16

    They're produced by the very best degree developers who will be distinguished for your polo dress creating. You'll find polo Ron Lauren inside exclusive array which include particular classes for men, women. <a href="http://www.spor365.info/">Bet365 canlı yardım</a>

  8. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 04, 2020 08:05

    I can set up my new idea from this post. It gives in depth information. Thanks for this valuable information for all,..
    no title https://maps.google.com.cu/url?q=https://federicogavazzi.com/

  9. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 02, 2020 20:11

    Thank you for very usefull information..
    free hide my wp https://hidemywp1.doodlekit.com/

  10. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 02, 2020 06:27

    I am glad you take pride in what you write. This makes you stand way out from many other writers that push poorly written content.
    go to the website https://images.google.tm/url?q=https://federicogavazzi.com/

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.