Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Android SDK not found

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

  1. warrenbrandt

    warrenbrandt

    Joined:
    Mar 3, 2018
    Posts:
    381
    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,097
    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:
    381
    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,097
    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:
    381
    lol no, i have tried 5 different "Fixes" just wont work, ridiculous!!!!
     
  6. warrenbrandt

    warrenbrandt

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