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

  1. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Apr 10, 2020 13:22

    I just found this blog and have high hopes for it to continue. Keep up the great work, its hard to find good ones. I have added to my favorites. Thank You.
    cupom desconto amazon https://list.ly/mase-musashi/lists

  2. 6845e15db0d0383c2644f384bb6e1376?d=mm

    johndd110

    Apr 07, 2020 20:27

    I read a article under the same title some time ago, but this articles quality is much, much better. How you do this..
    mua mèo cảnh tại tphcm https://cycling74.com/author/5e877e97138e94496a819230

  3. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Apr 07, 2020 12:46

    Nice Informative Blog having nice sharing..
    get online remote tech support https://blackrockconsultpro.com

  4. 6845e15db0d0383c2644f384bb6e1376?d=mm

    johndd110

    Apr 06, 2020 07:44

    Nice blog and absolutely outstanding. You can do something much better but i still say this perfect.Keep trying for the best.
    mua mèo cảnh tại tphcm https://docs.google.com/document/d/1dskNVRL3z9w8WSRBVbud7S2adas0v63bal79DyJGaIU/edit?usp=sharing

  5. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Apr 01, 2020 11:16

    Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging,
    wheels and tires https://www.solcontrolcustomsandtint.com/

  6. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Mar 18, 2020 13:04

    i read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future..
    https://www.directoriosweb.org https://www.directoriosweb.org

  7. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Mar 18, 2020 13:03

    i read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future..
    https://www.directoriosweb.org https://www.directoriosweb.org

  8. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Mar 15, 2020 17:20

    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.
    Kinderzahnarzt Luzern https://www.drsternina.ch/

  9. 6845e15db0d0383c2644f384bb6e1376?d=mm

    johndd110

    Mar 15, 2020 12:45

    Thanks so much for sharing this awesome info! I am looking forward to see more posts by you!
    caravan repairs https://www.airecentre-pacers.co.uk/the-very-best-caravan-repairs/

  10. 6845e15db0d0383c2644f384bb6e1376?d=mm

    johndd110

    Mar 15, 2020 07:29

    I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often.
    Any Jerseys http://www.anyjerseys.net/

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.