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. 9b418aa098b7642827f65d9cb9ef167b?d=mm

    mairamk033

    Aug 21, 2020 16:40

    I am a new user of this site so here i saw multiple articles and posts posted by this site,I curious more interest in some of them hope you will give more information on this topics in your next articles. <a href="http://jayskitchenandbar.com/hepsibahis">hepsibahis</a>

  2. 9b418aa098b7642827f65d9cb9ef167b?d=mm

    mairamk033

    Aug 20, 2020 10:32

    Thank you so much for the post you do. I like your post and all you share with us is up to date and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. <a href="https://cripplebastards.com/">꽁머니</a>

  3. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Aug 19, 2020 11:37

    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.
    Skull Art Shop https://skullring.tumblr.com/

  4. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Aug 18, 2020 10:05

    Great article with excellent idea!Thank you for such a valuable article. I really appreciate for this great information..
    influencers in Los Angeles http://influencerhubla.com

  5. 42984475b30a0448576daed961e50903?d=mm

    johnpketchum12

    Aug 18, 2020 04:28

    Also, when you have the experts helping you with your local SEO requirements, then your credibility, as well as your reputation, will increase. We can ensure that we go through all of the links and reviews to help you find the good ones. If you are at the top of the search engine results due to your ranking, then the customers are going to be more likely to trust you for their work. We can help you to ensure that your credibility, as well as your reputation, are the best that they can be in the online world. https://www.bigseobazar.com/

  6. 9b418aa098b7642827f65d9cb9ef167b?d=mm

    mairamk033

    Aug 16, 2020 07:28

    Three are usually cheap Ralph Lauren available for sale each and every time you wish to buy.<a href="https://ggpokerinv.com/">https://ggpokerinv.com/</a>

  7. 9b418aa098b7642827f65d9cb9ef167b?d=mm

    mairamk033

    Aug 13, 2020 17:04

    Wow what a Great Information about World Day its very nice informative post. thanks for the post.<a href="https://sagesmarketing.com/seo-edmonton/">SEO Edmonton</a>

  8. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Aug 13, 2020 16:20

    This type of message always inspiring and I prefer to read quality content, so happy to find good place to many here in the post, the writing is just great, thanks for the post.
    Original Nutter Design https://originalnutterdesign.co.uk

  9. 592516a49927a8a944da7644ada256a8?d=mm

    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

  10. 9b418aa098b7642827f65d9cb9ef167b?d=mm

    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>

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.