How to Install Android Studio on Windows 11

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys in this video i'm going to show you how you can download and install android studio on your windows 11 operating system now in order to install android studio on your windows 11 operating system you need to have java on your operating system so first of all we are going to see how we can install java jdk and then we are going to see how we can install and use android studio so for that first of all open your favorite browser and search for java jdk download and the first link which will appear here will be from oracle.com forward slash java forward slash technologies forward slash download so just click on this link i'm going to provide this link in the description of this video also so you can directly come to this website and here you just need to scroll down at the time of making this video java 17 is the latest version which is available for download so when you scroll down you will see the option to uh download the linux binaries or the mac os binaries or the windows binaries right so we are going to select windows from here and then we are going to select the exe option here so just select the link which is in front of the installer option here so click on this link here so just wait for the download to complete and once this exe file is downloaded i'm going to click on this exe file and let me minimize my browser so first of all you will see this kind of window which says do you want to allow this app to make changes on your device i trust this app so i will click on yes and now i can see the java jdk installer has been started on my windows 11 operating system so here you just need to click on the next button and this will be the default location where java will be installed on your windows 11 operating system just remember this location so by default it's installed in c then program files then it's going to create a java directory in program files folder and then there will be a jdk 17 folder or the name of the folder will be the version of jdk you are installing right so if you want to change this path just click on change and then change the destination otherwise if you don't have the good reason to change this location just leave it as default and then click on next which is going to start the installation of java on your windows 11 operating system so at this point you just need to wait for this process to complete and in few seconds you can see the java jdk has been installed on my windows 11 operating system so i'm going to close this window that means java is installed on my windows 11 operating system but still i have to do few things first of all i'm going to just go to the location where java is installed so just open your folder explorer and then go to the c directory and then i'm going to go to the program files where java folder is created and then in my case jdk 17.0.1 is created in your case this folder name version can be different so just go to this folder right now in order to set the environment variable for java what you need to do you can just click on the search icon once again and then just type edit and here which is going to show you this result which is edit environment variable for your account and it's going to open this kind of window you can also open this edit environment variable using control panel so you can search for control panel and then just view by category here and then click on system and security then click on system and then once the system window opens you can click on advanced system settings and then click on environment variables which is also going to show you the same window right so you can choose any method to open this environment variable window and once this is open you need to click on the path environment variable under system variables and then click on edit and here you need to add the path to your jdk folder binaries so go to the folder where we have installed java until jdk folder and then click on bin folder so we need to go inside the bin folder inside this jdk folder and then copy the path right so until bin and then copy this path from here go to the environment variable window once again and then you can double click here or you can click on new which is also going to show you this option and then just paste this path until bin and then press enter which is going to add this path to your environment variables click on ok so your java environment variable is set now some application also needs the java home environment variable on your windows operating system to run them so let me show you how you can set the java home environment variable also so you can go at the top under user variable section and then click on new here and then the variable name you need to provide here is java underscore home everything is capital just write whatever i have written here everything is in capital and the variable value will be the folder which we have opened which is jdk folder so don't go inside the bin folder in this case just copy the path until jdk folder you don't need to go inside the bin folder in this case okay and then just paste this path under variable values okay so you can see there is no bin folder added here only the path until the jdk folder click on ok and then click on ok and then click on ok which is going to set the environment variable for java on your windows 11 operating system now once you have installed java and set the environment variables you can use java on command line so you can just open the command prompt by typing cmd once again and then i can type java space hyphen version here and it's going to show me the version of java so you can see java version 17.0.1 so once the installation of java jdk is finished we are ready to install android studio so for that open your browser once again and then search for android studio download and the first link which will appear here will be from developer.android.com forward slash studio so i'm going to click on this link i'm going to put this link in the description of this video also so you can directly come to this website and straight away once this web page is open you will be able to see this download android studio button here right and the version at the time of making this video is 2020.3.1 you might see the different version depending upon when you are downloading android studio so i'm going to just click on this download button which is going to open this license terms and conditions window i just need to read or go through these license terms and conditions and if you agree with them just check this checkbox and then click on the screen button which is going to start the download of this android studio exe file now once this executable file is downloaded just go to the location where it's downloaded and then just right click here so you need to run this file as an administrator okay so don't just double click on it directly you just need to run it as an administrator so right click and then click on run as administrator so first of all you will see this kind of warning do you want to allow this app to make changes on your device i trust this app so i'm going to click on yes here and you can see the setup window for android studio has been started so on the first window just click on next and on the second window also you just need to choose the components so both the components are selected so i'm going to click on next here also this will be the default location where android studio will be installed on your windows 11 operating system so if you don't have the good reason to change this location just leave it as default and then click on next and here also just leave everything as default and then click on next and just wait for the installation to complete you can also see the details of the installation so you can see what packages and libraries are being downloaded extracted and installed and now after some time i can see uh this message which says installation complete the setup was completed successfully so once you see this message you can click on next button and then you can just check this check box and then click on finish which is going to launch android studio on your windows 11 operating system now when you start your android studio on your windows 11 operating system for the first time it will ask you to import some settings or not so if you don't have the previous installation of android studio on your windows 11 operating system you can just leave it as do not import settings option and then click on ok which is going to start android studio on your windows 11 operating system and now i can see uh this window which says data sharing so if you want to share data with uh google you can click on send usage statistics to google i don't want to share anything so i'm going to click on don't send and now you can see the android studio ide has been started and you can see kotlin plug-in update available so at any point android studio is going to show you these update messages so if you want to update these plugins then you can click on update and it's going to update your plugins or drivers right and now at this point we need to set up our android studio according to our preferences right so this is just for the first time you need to set up android studio so at this point click on next here and then from here you can choose standard and then click on next and you can choose either the light theme or the darcula theme whatever you like for now i'm going to click on the light theme and then click on next and then at last you will see this window which says verified settings so you can see uh these all sdks and android related files will be downloaded so i'm going to click on finish which is going to start the download and install of all the drivers and all the sdk files on your android studio right so at this point also once again you need to wait for some time and if you want to see the details always click on show details button which is going to show you the details of what's going on in the installation process and once the installation process is complete i'm going to click on finish button and now the android studio has been started on your windows 11 operating system so from here you can customize your android studio install plugins and learn more about android studio let's create a very simple android studio project and let's see if everything is working fine or not you can also see when you click on more actions here you have the profile or debug apk import project import and android code sample avd manager and sdk manager here right so let's create a new project i'm going to click on the new project option here and from here you can choose what you want to develop i'm going to just choose the empty activity here and then click on next and this will be the name of my application i'm going to change it as my simple app and you can also choose the language in which you want to develop your app so nowadays the default language is kotlin but you can also choose java from here so let's choose java for now and also you can choose the sdk so by default api 21 is selected which covers approximately 98 percent of devices but if you want to choose any other version for example i want to choose some newer version i can choose let's say the newest version here which is available which is api 31 but it just covers uh less than one percent of devices right so i will leave it as uh api 21 for now which covers approximately 98 of devices and then click on finish here which is going to start your android studio and create your project just maximize this window here for the first time when your project is created you can see it takes some time it takes some time to download all the gradle related files and other files so you just need to wait for some time until you see the project structure here and you can see uh that all the downloads are complete here at the bottom you will see all the processes which are going on you can just click on show all link here and you will see what's going on so it's importing the gradle project right now and then it's going to update the indexes right so now i can see my project has been created and all the indexing has been done i can minimize this window because i don't need it and when a new project is created you will see two files here first one is mainactivity.java where you will write all the logic behind your android app and you will see activity underscore main.xml file where you can design your app right so you have all these components here you can drag and drop these components in your app and then you can use these components right but before running your app you need an android emulator where you will run your app right you have created your app but where this app will run on your device so you need to add a device so i'm going to click on this no device option and then click on avd manager and you can see it says virtual device allow you to test your application without having your own physical device right so i'm going to click on create virtual device here and then choose any of the phone here so first of all choose the category and then i will choose pixel 5 here right and then click on next and from here i can choose any release but on the right hand side i can see this red message which says haxm is not installed so if you see this message then fix is simple you just need to click on this install hxm if you don't see this message if you don't see this message everything is fine for you and you don't need to install hxm it's already installed on your device right so if you see this right message just click on this install here xm and then click on next here which is going to show you this message i'm going to click on yes here and now i just need to wait for some time and after some time i can see this message which says intel hxm installed successfully so i can click on finish option and once that's done uh i can just download any uh of the release from here right so let me choose this pi version which is version 28 and then i need to accept all license terms and conditions and then click on next here we're just going to start the download here you can see the process of download in this progress bar so you can see two percent three percent here and once this sdk is installed you will see this message here which is done so you can just click on finish and then you can see this pi release is installed so you can click on next now and then select the avd name i will leave it as default and then you can also select your orientation so i will leave it as default also and then click on finish so once i click on finish this device will be added to my virtual device and once this device is added i can just close this and i can always select this device from here and then click on run app button which is going to build my app and then run this app in my virtual device which is this pixel 5 virtual device now in case if you see this message which says fail to install the following android sdk packages some license has not been accepted so to solve this problem what you need to do is you just need to click on tools here and then click on sdk manager and once sdk manager opens select android sdk here and on the top select sdk tools right and then click on this option which says android sdk command line tools right so right now it's not installed so i'm going to just apply this and then click on ok and then accept and then click on next we're just going to download this command line tool and once this tool is installed click on finish and then click on ok now right and then try once again and this time you will see that your build process will move forward your emulator is already started so you can see it's waiting for the build to finish and then it's going to launch your app in your emulate so let me move this emulator on the right hand side so you can see the build also and also see this app and now i can see my launch is successful on my android emulator and the name of my app at the top is my simple app which is the name of my project and i can see hello world here which was the button which was here right so this is how you can download and install android studio on your windows 11 operating system i hope you've enjoyed this video and i will see you in the next video
Info
Channel: ProgrammingKnowledge
Views: 253,953
Rating: undefined out of 5
Keywords: Install Android Studio, Android Studio, Android Studio on Windows 11, Windows 11, Android (Operating System), Microsoft Windows (Operating System), Computer, Tutorial, Mac, Mac OS X, Mavericks, Yosemite, macOS, macOS High Sierra, High Sierra, Install Android, Android Studio on Mac, How to Install Android Studio, MacoS, Hello World, Android Studio with SDK, Download Android Studio, Android operating system, Applications, DMG, Launch the Android
Id: 2TDqOhFpuqs
Channel Id: undefined
Length: 19min 46sec (1186 seconds)
Published: Thu Jan 06 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.