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

    rahulmoota7

    Oct 02, 2020 12:56

    Very useful information shared in this article, nicely written! I will be reading your articles and using the informative tips. Looking forward to read such knowledgeable articles regarding https://www.Matildacloud.Com

  2. 90844112c90384509b7550c808aec67d?d=mm

    freelancertrue

    Sep 14, 2020 02:16

    Buy SEO Services Online. Browse Fiverr's SEO expert profiles and hire the best SEO freelancer to outsource your SEO project and get it quickly done bigseobazar.com

  3. 81a46df005f8ffaf46f92cd19ea79b71?d=mm

    donaldrsimonn

    Sep 03, 2020 08:29

    "There is a genuine sense of fear that there will be a lot of repercussions, you know, socially, and also professionally," Michelle Lee, an American Shincheonji practitioner, told the Washington Free Beacon. "In South Korea, the list of congregation and congregant's information has been leaked and people have been receiving death threats, messages, calls, verbal assaults in person."

  4. 81a46df005f8ffaf46f92cd19ea79b71?d=mm

    donaldrsimonn

    Aug 27, 2020 09:23

    Shincheonji.TV is a new channel and subreddit on the truth behind the Korean cult, Shincheonji. It feature Shincheonji testimonies and Q&A and the latest news. Check this link right here now > https://www.reddit.com/r/ShincheonjiTV/

  5. 9b418aa098b7642827f65d9cb9ef167b?d=mm

    mairamk033

    Aug 27, 2020 07:04

    Getfromyt is the software online as YouTube Audio Downloader will convert high-quality Mp3 files for free. All you need is a copy link, paste, and download. <a href="https://getfromyt.com/">youtube audio downloader</a>

  6. 639416bc45a7e2bf82e0fac643f5afff?d=mm

    mairakhatrikhatri

    Aug 25, 2020 14:07

    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="https://softspacesolutions.com/digital-marketing-course/">Digital Marketing Training Nagpur</a>

  7. 9b418aa098b7642827f65d9cb9ef167b?d=mm

    mairamk033

    Aug 24, 2020 15:23

    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="https://s-finance.cz/">finance</a>

  8. 9b418aa098b7642827f65d9cb9ef167b?d=mm

    mairamk033

    Aug 23, 2020 08:39

    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="https://kodeposku.com/">cek kode pos</a>

  9. 81a46df005f8ffaf46f92cd19ea79b71?d=mm

    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

  10. 81a46df005f8ffaf46f92cd19ea79b71?d=mm

    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

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.