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

    Aug 22, 2020 11:42

    South Korean church Shincheonji was blamed for coronavirus spread. The article highlights cases of discrimination and persecution against its members. The Church gave a list of members to the government, but the list was leaked out and people were harassed for being part of Shincheonji.

    Click to find out more > https://www.foxnews.com/world/south-korea-church-coronavirus-spread

  2. donaldrsimonn

    Aug 22, 2020 09:56

    Double Standards in the South Korean Government's Response to Shincheonji and Sarang Jeil Church. They have been unfair to Shincheonji, but they have not prosecuted Sarang Jeil Church which explicitly went against government orders of not meeting together and told congregants to not get tested

    Click to find out more > https://www.prnewswire.com/news-releases/thepersecutedorg-releases-double-standards-in-the-government-response-to-shincheonji-and-sarang-jeil-church-301114317.html

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

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

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

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

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

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

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

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

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.