How to fix Unable to Locate Android SDK Problem

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi during the installation process of flutter some of my students are complaining that they are facing an error that is something like unable to locate android sdk so i thought i should go ahead and provide the solution so right now on my screen you can see that i am getting this error unable to locate android sdk however i have installed the android studio but still it is not able to recognize the android sdk path so to resolve this problem what we need to do is that we need to add the android sdk path into the environment variable and to add the path in the environment variable first we need to find out the path of the you know android sdk locally so first of all let's find out where is the android sdk located on our system to know the path but i will do that there are multiple options by the way the easiest one is that you start the android studio so i will click on windows button and start the android studio and after starting it starting this we will go to the sdk manager to find out the location of android sdk on our system okay so the android studio is started so what you can do is that if you click on this sdk manager button on the top you will be able to see sdk manager whenever you will open this you will see that it is by default selected android sdk but if you are not able to find out this android sdk what you can do is that you can search out sdk here as well and this will give you to give you the option to choose android sdk here and from here what you can do is that you can see that our sdk location is this one see users my user name and app data so for you it can be something like app data local and android but in my case this is my path for android sdk installation okay in order to go to this folder i will go to c and users users and from there i will choose my username and from my username i will go to the app data folder here so you can see that this is the app data folder by default this folder is is hidden to show this folder you can go to the view and from here you can make sure that you have selected hidden items here so that the hidden items are visible so right now i can click on this option and after i click on this option you can see that there are multiple folders that are available here the important folders to fix this problem are platform folder and platform tools folder so what you what you need to do is that you need the path of this platforms folder and also the platform tools folder first let's copy this path so what i will do is that i will click here and this will make sure that this is editable text and i will just select this text and press the control plus c from my keyboard so that this text is copied okay now once the text is copied what i can do is that i i need to add this into the environment variable so you already know that how to add any path into the environment variable so to open edit environment variable window what i will do is that i will click on windows button from my keyboard and type in env and after typing env you can see that it is providing an option edit the system environment variables just click on this option and you can see that this window pops up and from here make sure that you are on the advanced tab and from here click on add environment variables option and from there you will be able to see another option that is something like uh environment variables and from here you you can see that there are two options first one is this path and second is this path this time we need to choose this path and add our platform folder link or folder path so i will click on this and click on edit here once you click on edit you see another dialog just like this and from here you can you can click on new here and from new you can just right click and paste this okay now you can see that i just copy pasted the platform tools folder here and just click ok and from here again you need to click on ok again for our this dialog and okay again for this dialog but right now i we need to add another path so i will go back and go to the platform tools folder this time previously we just added the platforms folder but right now we are going to add platform tools folder into the environment variables so just double click and again just like before we will you know copy this path and after copying this path i will go to the environment variables again and this time again path the same way and i will click on edit and after clicking clicking on edit i will just add new entry and just copy paste this press ok press ok from here and press ok from here okay so now let's test out our command for flutter doctor again just like before and let's see if this can solve the problem and also in order to test this we need to restart our command prompt so i will close this window and and let's start the flutter terminal again i will type in terminal and from here you need to you just need to type inflater doctor here and let's see if this can solve the problem that we faced okay now you can see that the android sdk not located or unable to locate sdk problem is gone but now we are facing another problem that is flutter doctor android licenses android license is not accepted so you know that we just need to run this command and our error will go away permanently so let me just copy paste this command and this will accept the licenses for us we might need to press five couple of time here so that uh this goes away why again by again why not couple of times by the way and y and now if you run the flutter doctor again you will see that everything will work fine and now you are able to move forward and learn or implement flutter apps development by the way make sure to check out my detailed playlist about flutter so that you can get comfortable with flutter apps development best of luck and if you have any question make sure to write it in the comment section and i will definitely reply you back
Info
Channel: Learn with Shajeel
Views: 85,490
Rating: undefined out of 5
Keywords: android studio, sdk location, how to set sdk location in android studio, unable to locate android sdk, unable to locate android sdk visual studio code, unable to locate android sdk flutter, unable to locate android sdk error, unable to location android, unable to locate sdk error, unable to locate sdk, how to find android sdk path, trick to find android sdk path, how to fix unable to locate android sdk path error, how to solve unable to locate android sdk path
Id: 7GuGlATHYX8
Channel Id: undefined
Length: 7min 18sec (438 seconds)
Published: Fri Mar 12 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.