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 (65)

  1. 639416bc45a7e2bf82e0fac643f5afff?d=mm

    mairakhatrikhatri

    Jul 28, 2020 06:14

    I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post. <a href="https://www.prosperipress.com/">news</a>

  2. 639416bc45a7e2bf82e0fac643f5afff?d=mm

    mairakhatrikhatri

    Jul 27, 2020 15:46

    A debt of gratitude is in order for sharing the information, keep doing awesome... I truly delighted in investigating your site. great asset... <a href="https://www.myjobsi.co.uk/">job posting</a>

  3. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 26, 2020 16:07

    Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts.
    Brisbane SEO ExpertS https://www.brisbaneseoexperts.com.au

  4. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 25, 2020 13:55

    I love the way you write and share your niche! Very interesting and different! Keep it coming!
    máy triệt lông công nghệ ipl http://5f0d902386772.site123.me/

  5. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 24, 2020 09:08

    I felt very happy while reading this site. This was really very informative site for me. I really liked it. This was really a cordial post. Thanks a lot!.
    máy triệt lông spa https://diigo.com/0i1th4

  6. 639416bc45a7e2bf82e0fac643f5afff?d=mm

    mairakhatrikhatri

    Jul 23, 2020 20:26

    Pretty good post. I have just stumbled upon your blog and enjoyed reading your blog posts very much. I am looking for new posts to get more precious info. Big thanks for the useful info. <a href="https://dariusreviews.com/best-graphics-card-for-fortnite/">best gpu for fortnite</a>

  7. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 22, 2020 10:24

    I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it..
    San Antonio Electrician https://www.allstarelectric-sa.com

  8. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 20, 2020 18:04

    These are some great tools that i definitely use for SEO work. This is a great list to use in the future..
    kiếm tiền với Wefinex https://forum.cs-cart.com/user/88517-tienkyss/

  9. 639416bc45a7e2bf82e0fac643f5afff?d=mm

    mairakhatrikhatri

    Jul 20, 2020 12:38

    SBOBETASIA adalah salah satu Agen SBOBET Terpercaya yang menghadirkan Judi SBOBET Online agar bisa memberikan kemudahan Daftar SBOBET Resmi dengan minimal deposit 25rb saja <a href="http://173.82.202.129/cara-daftar-sbobet-asia-resmi/">SBOBETASIA</a>

  10. 639416bc45a7e2bf82e0fac643f5afff?d=mm

    mairakhatrikhatri

    Jul 20, 2020 02:31

    Great blog post you have shared here. Thank you <a href="https://winc.com/hi/r34iatjxgm0">Winc Promo Code</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.