Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Android SDK not found

Discussion in 'Android' started by warrenbrandt, Oct 5, 2020.

  1. warrenbrandt

    warrenbrandt

    Joined:
    Mar 3, 2018
    Posts:
    413
    I cant build Android projects APK anymore!

    I keep getting an error

    using 2019.4.11f1

    i get

    "Android SDK not found or invalid, please fix it in preferences -> external tools

    The android tools and SDK and NDK are ticked and installed on my Unity hub

    doesnt work whether i let Unity use its tick box
    or whether i download the android sdk to another folder

    i have reinstalled Unity and Android Studio but still nothing

    Can anybody please help me
     
    Last edited: Oct 5, 2020
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,873
    Can you navigate to path in preferences -> external tools and see if those folders are really there?
     
  3. warrenbrandt

    warrenbrandt

    Joined:
    Mar 3, 2018
    Posts:
    413
    sure...thanks for replying

    Android SDK tools installed

    C:/Program Files/Unity/Hub/Editor/2019.4.11f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK

    there are 4 folders

    build-tools
    platforms
    platform-tools
    tools

    NDK C:/Program Files/Unity/Hub/Editor/2019.4.11f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK

    has a rake of folders and files like:

    build
    meta
    flatforms
    prebuilt

    etc etc
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,873
    I think, it may be because of slashes, there were bugs reported in the past. Try replacing all forward slashes / to backwards \
     
  5. warrenbrandt

    warrenbrandt

    Joined:
    Mar 3, 2018
    Posts:
    413
    lol no, i have tried 5 different "Fixes" just wont work, ridiculous!!!!
     
  6. warrenbrandt

    warrenbrandt

    Joined:
    Mar 3, 2018
    Posts:
    413
    Ok so my SDKmanager.bat keeps getting automatically deleted now, trying to work out how to stop this