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

    unity_K99WJS2TxGpRtA

    Jul 19, 2020 07:25

    Thank you again for all the knowledge you distribute,Good post. I was very interested in the article, it's quite inspiring I should admit. I like visiting you site since I always come across interesting articles like this one.Great Job, I greatly appreciate that.Do Keep sharing! Regards,
    cocaine cuts test kit http://recampus.ning.com/forum/topics/when-should-managers-drug-test-at-the-office

  2. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 16, 2020 12:38

    You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant!Cleaning Services http://recampus.ning.com/forum/topics/home-rug-cleaning-features

  3. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 14, 2020 11:12

    I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.
    commercial electrical contractor http://www.staldebrauwer.com/tips-for-choosing-the-best-commercial-electrical-contractor/

  4. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 13, 2020 11:56

    I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information.
    commercial electrician in Little Elm http://www.mydollshouse.me.uk/hiring-a-commercial-electrician-in-little-elm/

  5. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 12, 2020 12:28

    I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.
    Cascade sailing http://www.cascadesailing.co.uk

  6. 639416bc45a7e2bf82e0fac643f5afff?d=mm

    mairakhatrikhatri

    Jul 11, 2020 19:23

    his was really very informative site for me. I really liked it. Thanks a lot!.<a href="https://ozywebit.com.au/">seo agency</a>

  7. D40ed9727d7be0dbf1b368d8092082a3?d=mm

    cozyurt_unity

    Jul 11, 2020 15:07

  8. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 10, 2020 09:23

    I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post.
    JF Spence http://jfspence.co.uk

  9. A7d1c05eab4b1606dd2648ad099eeee6?d=mm

    fenoko

    Jul 08, 2020 18:50

    I was reading your article and wondered if you had considered creating an ebook on this subject. Your writing would sell it fast. You have a lot of writing talent.
    mental träning sport https://www.lonelyplanet.com/profile/hypnosterapin924341

  10. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 08, 2020 13:35

    Thank you for taking the time to publish this information very useful!
    over at this website https://maps.google.com.sv/url?q=https://www.throughalenz.com

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.