Search Issue Tracker

Fixed in 2018.3.X

Fixed in 2017.4.X, 2018.2.X

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. 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 (88)

  1. unity_K99WJS2TxGpRtA

    Aug 12, 2020 09:20

    If more people that write articles really concerned themselves with writing great content like you, more readers would be interested in their writings. Thank you for caring about your content.
    exchange rate website http://knsz.prz.edu.pl/forum/member.php?action=profile&uid=521637

  2. mairamk033

    Aug 11, 2020 15:15

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

  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 https://www.artfire.com/ext/people/freelancers

  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="https://www.ssla.co.uk/narrowband-iot/">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 https://medium.com/@farhanmemonoo8/buying-cars-in-online-auctions-9a560968b70e?postPublishedType=initial

  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 https://monstergreenbuilding.com

  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="https://www.prosperipress.com/">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="http://be-mine.net/">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="https://pcbeducation.com/aiou-solved-assignments/?fbclid=IwAR0zE5ZRymfBZDSFon8AJUALJorDRSHXog_dWBQRqnmh0UIikXNagLyY39Y">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.