Search Issue Tracker

Fixed in 2018.3.X

Fixed in 2017.4.X, 2018.2.X



Found in

Issue ID




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



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:

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. 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:

Comments (88)

  1. mairamk033

    Aug 11, 2020 15:15

    This is a brilliant blog! I'm very happy with the comments!..<a href="">Web Development Agency</a>

  2. rochbordan11

    Aug 11, 2020 10:16!/;area=summary;u=341770;u=4039!/;area=summary;u=341718!/!/!/!/

  3. unity_K99WJS2TxGpRtA

    Aug 11, 2020 07:54

    Very interesting blog. Alot of blogs I see these days don't really provide anything that I'm interested in, but I'm most definately interested in this one. Just thought that I would post and let you know.
    hire freelancers India Philippines

  4. mairakhatrikhatri

    Aug 10, 2020 06:21

    I have browsed most of your posts. This post is probably where I got the most <a href="">narrowband-iot</a>

  5. minimilitiablogblog

    Aug 09, 2020 17:55

  6. unity_K99WJS2TxGpRtA

    Aug 09, 2020 15:46

    Great knowledge, do anyone mind merely reference back to it
    Odkup vozil

  7. unity_K99WJS2TxGpRtA

    Aug 09, 2020 08:43

    This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free.
    Monster Green Building

  8. mairakhatrikhatri

    Aug 08, 2020 17:12

    Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you. <a href="">pets</a>

  9. mairakhatrikhatri

    Aug 06, 2020 07:22

    This is very interesting content! I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great. <a href="">escort girls Moscow</a>

  10. mairakhatrikhatri

    Aug 03, 2020 15:24

    Thankyou for all your efforts that you have put in this. very interesting info . <a href="">aiou solved assignments</a>

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.