- Home /
Android SDK not found or invalid in unity.
I am working on Unity 2019.4.1f1 (Windows), The dialog box contains "Android SDK not found or invalid. Please, fix it in Preferences -> External Tools" .
All things that I have tried:-
Installing SDK, JDK, NDK manually, still the same problem
expand the android build support from unity hub and installed OpenJDK and NDK, still the same problem.
Installed all from the unity hub, still the same problem.
Changed the tools folder of Android SDK, still the same problem
I will be grateful if you helped me.
Thank you.
after installing the sdk, have you made sure the path in the external tools field was pointing to the right path? also, if you are installing the sdk jdk and ndk using the unity hub, you $$anonymous$$UST check the check box in the exteernal tools window saying "use embeeded sdk"
Answer by unity_6CbpIfHdnbBAfQ · Jul 02, 2020 at 07:52 AM
I too had the problem but after 3 full days of looking(re-downloading, deleting, moving files).I found a solution that worked for me and Unity was able to detect my SDK. ------------>
Go to Android Studio Click Configure then SDK manager Click SDK Tools Install Android SDK Command-line Tools(latest) [Make sure it is in the same default location all your files are in) Now you should be set __ Go into Unity->Edit->Preferences and click browse Unity should Know WORK! (Make sure your path is same as Android studio leave box unchecked if needed)
@fastlight821 Let Me Know if this Helped:)
Thanks, it Workes, but my unity gets stuck at last of the build Gradle project, and an error cames. please help.
Thanks, it Workes, but my unity gets stuck at last of the build Gradle project, and an error cames :- build player window exception. please help.
Thanks a lot, mate! Finally solved my problem after hours of trying!! <3
i get this error when i install the cmdline tools and building the app,i restarted the pc and the unity but nothing happens.
Win32Exception: ApplicationName='C:\Users\Guest\AppData\Local\Android\sdk\cmdline-tools\latest\bin\sdkmanager.bat', CommandLine='--list', CurrentDirectory='C:\Users\Guest\Desktop\program\draw so2\so2 draw v2', Native error= The system cannot find the file specified.
System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at :0) System.Diagnostics.Process.Start () (at :0) (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start() UnityEditor.Utils.Program.Start (System.EventHandler exitCallback) (at :0)
Answer by Gonzalo66_66 · Jun 26, 2020 at 03:23 PM
there is the same problem in this link. Have a look. https://answers.unity.com/questions/1745418/android-sdk-not-found-or-invalid-unity.html I had the same problem. Finally I found that you can install SDK, jdk and ndk from hub. See my answer in the link. Good luck
Answer by ahmedaniss · Jul 21, 2020 at 08:19 AM
Problem Fixed here
NDK for unity 2019 or 2020 : https://youtu.be/sEGP6tWQRck
NDK for unity 2021 or above : https://youtu.be/0swnyF_lT10
JDK and Gradle : https://youtu.be/8rpKy1rBDlA
Your answer
Follow this Question
Related Questions
Android SDK not found or invalid unity. 3 Answers
Has anyone gotten Unity2020 working with external Android libs/tools? 0 Answers
AndroidApiLevel30 ? 0 Answers
How to get Android 10 (API Level 29) 1 Answer
Setting android tools location in unity 4 Answers