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

    Dec 07, 2022 04:48

    bagaimana

  2. bisasemua

    Nov 16, 2022 17:08

    Nice

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

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

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

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

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

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

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

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

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.