Search code examples
javaunity-game-enginesdkandroid-ndk

You are missing the recommended SDK/JDK/NDK/ Install the recommended version using Unity Hub


So I've been getting these warnings in Unity 2019.410f1. Here's how it looks like:enter image description here

But when I go to Hub to fix this, those packages are already installed. enter image description here

However, there are no such folders in the directory where they are supposed to be (except for NDK folder, this one is fine). So here's my problem: JDK, NDK and SDK are NOT installed, but Unity Hub thinks overwise and doesn't let me install them. Reinstalling this version of Unity doesn't help either. Does anyone know what can I do to fix this?


Solution

  • the bug

    There has been a bug in unity forever with those. The fix is, for jdk, sdk and ndk..

    • click copy path button,
    • untick the use version installed with unity box
    • paste in the path you just copied
    • (optional, save project and exit and repoen it)
    • Then just retick the boxes to put it back the way it was originaly

    I dont think you are having this bug tho, your problem sounds different.

    uninstall / reinstall

    I'm really suprised uninstalling unity and reinstalling didnt fix it. Maybe try uninstalling all versions of unity + unity hub, restart machine and start again installing unity hub.

    Manually download

    If nothing else works I think this would, but its not pretty..

    Manually download sdk, jdk and ndk, untick the boxes and add the paths where you have put them. The jdk and ndk can just be downloaded.