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

    Jul 10, 2020 09:23

    I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post.
    JF Spence

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

  3. unity_K99WJS2TxGpRtA

    Jul 08, 2020 13:35

    Thank you for taking the time to publish this information very useful!
    over at this website

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

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

  6. 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="">Web Development Courses</a>

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

  8. 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="">Bet365 canlı yardım</a>

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

  10. unity_K99WJS2TxGpRtA

    Jul 02, 2020 20:11

    Thank you for very usefull information..
    free hide my wp

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.