Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by fastlight821 · Jun 26, 2020 at 05:56 AM · unityeditorandroid buildandroid sdkandroid-sdk

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:-

  1. Installing SDK, JDK, NDK manually, still the same problem

  2. expand the android build support from unity hub and installed OpenJDK and NDK, still the same problem.

  3. Installed all from the unity hub, still the same problem.

  4. Changed the tools folder of Android SDK, still the same problem

I will be grateful if you helped me.

Thank you.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image xxmariofer · Jun 26, 2020 at 01:36 PM 0
Share

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"

3 Replies

· Add your reply
  • Sort: 
avatar image
4
Best Answer

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:)

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image fastlight821 · Jul 05, 2020 at 04:01 AM 0
Share

Thanks, it Workes, but my unity gets stuck at last of the build Gradle project, and an error cames. please help.

avatar image fastlight821 · Jul 05, 2020 at 05:28 AM 0
Share

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.

avatar image BinHexer · Sep 13, 2020 at 07:18 AM 0
Share

Thanks a lot, mate! Finally solved my problem after hours of trying!! <3

avatar image duocpk · Oct 14, 2020 at 05:56 AM 0
Share

THANK YOU THANK YOU THANK YOU THANK YOU

avatar image InteractiveWayzz · Nov 06, 2020 at 10:50 AM 0
Share

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)

Show more comments
avatar image
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

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image fastlight821 · Jun 27, 2020 at 04:52 AM 0
Share

yes done that, still the same problem

avatar image
0

Answer by ahmedaniss · Jul 21, 2020 at 08:19 AM

Problem Fixed here

  • SDK : https://youtu.be/PBT27TgUlUE

  • 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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

143 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges