1 00:00:04,279 --> 00:00:08,490 In this video I'm going to show you how to download and install Android Studio, 2 00:00:08,490 --> 00:00:12,299 which is the program we're going to be using to write our Android applications 3 00:00:12,299 --> 00:00:16,530 in this course. Just a reminder that this is the Windows video, so if you're 4 00:00:16,530 --> 00:00:21,210 running a Mac or Linux machine, refer to a separate video in this section where you 5 00:00:21,210 --> 00:00:24,630 can follow along for the installation instructions for those operating systems. 6 00:00:24,630 --> 00:00:28,140 So moving forward, presuming you're on Windows. At this point, I'm going to 7 00:00:28,140 --> 00:00:32,759 assume you're running a 64-bit version of Windows. There's a - swing over to this 8 00:00:32,759 --> 00:00:36,749 link here on screen - and there's a link to this in the resources section of this 9 00:00:36,749 --> 00:00:42,719 video. The 32-bit Android studio has been deprecated, meaning that it won't be 10 00:00:42,719 --> 00:00:46,499 supported for much longer by Google. So this blog post - again you 11 00:00:46,499 --> 00:00:50,159 can find the link to in the resources section - but it's not a bad thing because 12 00:00:50,159 --> 00:00:55,530 using Android Studio on a 32-bit system wasn't a good experience. And that's 13 00:00:55,530 --> 00:00:59,940 because 32-bit versions of Windows have limitations on the amount of RAM that 14 00:00:59,940 --> 00:01:05,370 they can use. In fact only 3.5 gigabytes of RAM can be addressed by 32-bit 15 00:01:05,370 --> 00:01:09,030 versions of Windows; and that's really going to make life hard for you as 16 00:01:09,030 --> 00:01:13,650 an Android developer. Android Studio really needs more memory to operate 17 00:01:13,650 --> 00:01:17,730 effectively. So to check if you're running a 64-bit or 32-bit version of 18 00:01:17,730 --> 00:01:22,050 Windows, you just come down here to the search window, you can either type 32 or 19 00:01:22,050 --> 00:01:26,520 type "about", and that will bring you to either about your PC or if you get this 20 00:01:26,520 --> 00:01:30,480 opportunity and see if you have a 32 or 64-bit version they should both take you 21 00:01:30,480 --> 00:01:35,700 to this about page, as you can see here. Then under device specifications you can 22 00:01:35,700 --> 00:01:40,860 see it says system type. Now this says 64-bit operating system, and that means 23 00:01:40,860 --> 00:01:43,770 you've got a 64-bit installation and you're good to go. 24 00:01:43,770 --> 00:01:48,000 Otherwise it'll say 32-bit, and that would obviously mean you're running a 25 00:01:48,000 --> 00:01:51,780 32-bit installation of Windows. Ignore the processor bit, on the right-hand 26 00:01:51,780 --> 00:01:56,730 side, it's the Windows installation type that we're after. So if your screen looks 27 00:01:56,730 --> 00:02:01,200 like this one, and says 64-bit, keep watching the video and follow along. But 28 00:02:01,200 --> 00:02:05,580 if yours says 32-bit then you're probably going to have problems with this 29 00:02:05,580 --> 00:02:09,360 course with that version of Windows. There is a version of Android studio 30 00:02:09,360 --> 00:02:14,220 that I alluded to that you can install, for a 32-bit version Windows, but that's 31 00:02:14,220 --> 00:02:17,440 again not going to be supported for much longer. 32 00:02:17,440 --> 00:02:20,950 Good news is though that, unless you bought your computer a really long time 33 00:02:20,950 --> 00:02:25,290 ago, the chances are pretty high that you've already got a 64-bit cpu 34 00:02:25,290 --> 00:02:29,290 installed, even if you haven't necessarily got a 64-bit version of 35 00:02:29,290 --> 00:02:33,310 Windows. So if you really want to get into Android development then I suggest 36 00:02:33,310 --> 00:02:38,080 that you would install a 64-bit operating system. Now you'll probably have 37 00:02:38,080 --> 00:02:42,760 to pay to upgrade windows to 64-bit, but another alternative you can also 38 00:02:42,760 --> 00:02:47,260 consider is installing a Linux operating system - such as Ubuntu. And you can dual 39 00:02:47,260 --> 00:02:51,370 boot that on your Windows machine. And that's a lot cheaper, and in fact it's 40 00:02:51,370 --> 00:02:54,670 free. But obviously you need to invest some time in learning a new operating 41 00:02:54,670 --> 00:02:58,510 system, in that scenario. So moving on now, I'm going to assume that you're 42 00:02:58,510 --> 00:03:03,250 running a 64-bit version of Windows. The next thing I want to do is check the CPU. 43 00:03:03,250 --> 00:03:07,060 So while we're on this screen, you can take a look at the processor, and note 44 00:03:07,060 --> 00:03:11,770 that for me it says Intel but depending on your computer you may see Intel or 45 00:03:11,770 --> 00:03:17,500 another option such as AMD. So if the processor is Intel, as mine is, then you're 46 00:03:17,500 --> 00:03:22,330 good to go. However if the processor was AMD then there's another step to 47 00:03:22,330 --> 00:03:25,620 perform. And things are slightly different because it's an AMD processor. 48 00:03:25,620 --> 00:03:30,790 So in that scenario, if you do see AMD - if and only if - you want to come down to the 49 00:03:30,790 --> 00:03:35,590 bottom of the screen down here. I'm going to type "turn windows" until we get this 50 00:03:35,590 --> 00:03:38,410 option here to Turn Windows Features on or off. Or you may need to go into 51 00:03:38,410 --> 00:03:43,989 control panel and find that. And again, if you're on an AMD processors only, 52 00:03:43,989 --> 00:03:48,190 let's go down to the bottom here and we're looking for Windows Hypervisor 53 00:03:48,190 --> 00:03:52,660 Platform. And you can see the check box is off for me, but what you'll need to do 54 00:03:52,660 --> 00:03:56,019 if you're on an AMD is check that and click OK. 55 00:03:56,019 --> 00:03:58,660 Obviously I'm not going to do that, because you can see that I'm running a 56 00:03:58,660 --> 00:04:02,350 Intel CPU in my scenario. What will happen, when you do that and you're running an 57 00:04:02,350 --> 00:04:06,250 AMD CPU, it'll adjust windows, change some settings, and probably require you to 58 00:04:06,250 --> 00:04:11,440 reboot. So do that if you're on an AMD CPU, and then come back to this point in 59 00:04:11,440 --> 00:04:16,000 the video and continue on as per normal. Alright, so in my case, again, I mentioned 60 00:04:16,000 --> 00:04:19,959 that I'm on Intel so I'm going to cancel that, close down this, and 61 00:04:19,959 --> 00:04:23,530 we're now what we're going to do is go back to the google search engine, and 62 00:04:23,530 --> 00:04:27,250 we're going to install Android Studio. So first things first we want to find 63 00:04:27,250 --> 00:04:31,240 it and then the easiest thing to do is just do a search for install android 64 00:04:31,240 --> 00:04:37,870 studio. And you want to click the first developer.android.com link here 65 00:04:37,870 --> 00:04:42,400 you can see that one says studio install which is correct. Come over here and click 66 00:04:42,400 --> 00:04:46,479 on "Download the latest version of Android Studio" and this should give you 67 00:04:46,479 --> 00:04:50,620 straight away the released latest version of Android studio. If there are 68 00:04:50,620 --> 00:04:54,250 options to click over here where you can download other options, a 32-bit version 69 00:04:54,250 --> 00:04:57,430 and so forth that we don't recommend, but we're not going to do any of that. I'm 70 00:04:57,430 --> 00:05:01,539 gonna go back and obviously down here it tells us that it's the windows 64-bit. 71 00:05:01,539 --> 00:05:06,610 I'm going to click on that, I'm gonna click on I've read and agree, click on 72 00:05:06,610 --> 00:05:09,970 download Android studio for Windows. I'm just going to run that when it's 73 00:05:09,970 --> 00:05:14,349 finished, so while that's downloading keep in mind that the 3.5 you see there 74 00:05:14,349 --> 00:05:18,220 may be a higher number, when you come to download that. And the 75 00:05:18,220 --> 00:05:23,560 reason for that is Google, who own the Android product, they release new 76 00:05:23,560 --> 00:05:27,849 versions of Android Studio on a regular basis. So it's very hard, because they 77 00:05:27,849 --> 00:05:31,900 release so many updates a year, to keep these installation videos updated. But 78 00:05:31,900 --> 00:05:34,930 the good thing is that generally the installation is very similar to what 79 00:05:34,930 --> 00:05:38,590 we'll go through in this video. So if you see a later version there, on the same 80 00:05:38,590 --> 00:05:42,610 screen that I've got on now, then you can just proceed and download that 81 00:05:42,610 --> 00:05:47,229 newer version, and you're good to go. Ok you can see we're just about done 82 00:05:47,229 --> 00:05:51,969 here now. we'll let it run its security scan, and then it'll probably ask us to 83 00:05:51,969 --> 00:05:57,280 update something. What I'm gonna do is just close down the browser, because we're 84 00:05:57,280 --> 00:06:04,479 finished with it anyway, and you may or may not see this pop up on screen. But 85 00:06:04,479 --> 00:06:08,110 it's asking is do we want to allow this app to make changes to your device. So 86 00:06:08,110 --> 00:06:12,280 I'm going to select yes to that, and that will continue the installation. Click on 87 00:06:12,280 --> 00:06:15,849 Next. We're going to make sure both these options are checked, the first one we can't 88 00:06:15,849 --> 00:06:20,349 uncheck anyway. Make sure Android Virtual Device is checked, click on Next. We're 89 00:06:20,349 --> 00:06:26,289 going to install to the default location, Next, and click on Install. We'll let that go 90 00:06:26,289 --> 00:06:32,229 ahead and complete. Ok, that's now completed. We'll click on Next and we'll 91 00:06:32,229 --> 00:06:37,180 click on Finish, noting the checkbox for Start Android Studio is checked - and 92 00:06:37,180 --> 00:06:40,150 that's obviously going to do just that. You'll get this option if you haven't 93 00:06:40,150 --> 00:06:43,389 installed Android studio on your computer before. It's giving us the 94 00:06:43,389 --> 00:06:47,139 option to load the settings, or a configuration, from another 95 00:06:47,139 --> 00:06:50,860 installation. We haven't got one, we're starting from fresh, so I'm just going to 96 00:06:50,860 --> 00:07:00,849 click on OK. Next we've got a wizard that's popped up. I'm gonna click on Next 97 00:07:00,849 --> 00:07:07,750 here, and we'll come over and click Custom. Next you got a choice of themes 98 00:07:07,750 --> 00:07:11,259 here. I'm going to leave it on white as the white background, because that comes 99 00:07:11,259 --> 00:07:15,099 up better in videos, but you might want to choose Darcula, which is usually, or 100 00:07:15,099 --> 00:07:17,740 certainly something, that a lot of students would prefer. Because it's a 101 00:07:17,740 --> 00:07:22,449 little bit easier on the eyes. So choose the one you like, click on Next. Here we 102 00:07:22,449 --> 00:07:25,419 want to make sure that we've got everything checked. However there are 103 00:07:25,419 --> 00:07:29,710 some notes to keep in mind, or things to keep in mind, about Intel HAXM. We 104 00:07:29,710 --> 00:07:35,319 specifically do not want to install Intel HAXM if you're running an AMD CPU 105 00:07:35,319 --> 00:07:39,969 or processor. Now the reason for that is that the HAXM, which is a product that 106 00:07:39,969 --> 00:07:43,930 actually speeds up and come over here and check it; it tells the over there that 107 00:07:43,930 --> 00:07:47,860 it enables a hardware-assisted virtualization engine - basically speeds 108 00:07:47,860 --> 00:07:52,629 up the Android app emulation. Now that's been written by Intel, and what they've 109 00:07:52,629 --> 00:07:57,250 done is specifically make it not work with non Intel CPUs. So therefore it 110 00:07:57,250 --> 00:08:01,150 makes no sense to install it if you're on an AMD CPU - and in fact you'll get 111 00:08:01,150 --> 00:08:06,069 errors. So make sure you deselect that if you are not on an Intel CPU, for that 112 00:08:06,069 --> 00:08:10,330 reason. In my case, I am on an Intel CPU as we saw early in the video. I'm going to 113 00:08:10,330 --> 00:08:14,879 check it, click on Next, and this will only pop up obviously if you selected to 114 00:08:14,879 --> 00:08:19,990 check the box for HAXM. This is the amount of RAM in your computer you want 115 00:08:19,990 --> 00:08:25,419 to dedicate to HAXM. again to speed up your Android app emulation. It's usually 116 00:08:25,419 --> 00:08:29,379 okay to just leave the default - in my case it's suggesting two gigabytes of RAM. 117 00:08:29,379 --> 00:08:33,880 As a general piece of advice, if you've got less than 8 gigabytes of RAM total 118 00:08:33,880 --> 00:08:37,299 on your computer, do some research and see if your computer can be upgraded to 119 00:08:37,299 --> 00:08:42,190 8 gigabytes or even better 16 gigabytes. Memory is relatively cheap, and it will 120 00:08:42,190 --> 00:08:45,579 make a big difference in the performance of Android studio and the emulators etc. 121 00:08:45,579 --> 00:08:49,959 But in terms of the RAM you've got on your computer now, if you've got 8 gigabytes or 122 00:08:49,959 --> 00:08:53,949 more of RAM in your computer, leave it as the default that's been selected 123 00:08:53,949 --> 00:08:57,810 automatically within by the Installer. But if you've got less than 8 gigabytes 124 00:08:57,810 --> 00:09:01,540 then you'll need to allocate less to HAXM. Depending 125 00:09:01,540 --> 00:09:04,390 on just how much memory you've got in your computer, you may need to reduce 126 00:09:04,390 --> 00:09:09,100 that to one gigabyte or even 512 megabytes. So I'm going to go ahead and 127 00:09:09,100 --> 00:09:11,980 continue the installation of HAXM because probably the majority of 128 00:09:11,980 --> 00:09:16,089 Windows computers out there do have Intel CPUs, and obviously we established 129 00:09:16,089 --> 00:09:19,360 earlier in the video that mine has. So I'm going to leave the defaults here, and 130 00:09:19,360 --> 00:09:24,220 click on Next. Then we're going to click on Finish and we're going to see that 131 00:09:24,220 --> 00:09:27,670 there's a download going to take place, so I'm just going to fast forward 132 00:09:27,670 --> 00:09:31,529 this and we'll come back when it's reached the next step. 133 00:09:34,870 --> 00:09:39,560 Okay so the installation's continued. You're now automatically being prompted to 134 00:09:39,560 --> 00:09:42,830 allow this app to make changes to devices. And this is because I've 135 00:09:42,830 --> 00:09:46,820 selected HAXM, so you may not see this. And if it comes up with a pop up, just click 136 00:09:46,820 --> 00:09:50,390 on Yes to windows command processor and it's actually going now you can see down 137 00:09:50,390 --> 00:09:54,140 the bottom it's running the Intel HAXM installer. And if you tried to do this on 138 00:09:54,140 --> 00:09:58,250 an AMD machine with an AMD CPU, so there's a processor, you won't get an 139 00:09:58,250 --> 00:10:02,710 error. I'm just going to pop up on the screen what that will look like. 140 00:10:02,990 --> 00:10:06,740 You can see, in my case, it was successfully installed. Now there can be 141 00:10:06,740 --> 00:10:12,040 reasons why the HAXM installation will fail, even if you are on an Intel CPU, and 142 00:10:12,040 --> 00:10:16,100 usually it's got to do with a BIOS change on your computer that you need to 143 00:10:16,100 --> 00:10:19,129 change. So if you do find that you're going to error similar to the one you 144 00:10:19,129 --> 00:10:22,910 can see on screen now, and you have got an Intel CPU, then it might be worth 145 00:10:22,910 --> 00:10:27,980 checking that VTX is enabled in your computer's BIOS. And there's a video in 146 00:10:27,980 --> 00:10:31,249 this section of the course with the title "Enable VTX 147 00:10:31,249 --> 00:10:34,399 in BIOS" which you can check out, which should give you the information you need 148 00:10:34,399 --> 00:10:38,449 to make that change in your computer. But in my case you can see that I was 149 00:10:38,449 --> 00:10:42,170 successful in installing HAXM, and in fact the Android installation, so I 150 00:10:42,170 --> 00:10:46,939 can click on Finish. At this point we've done the basic installation of Android 151 00:10:46,939 --> 00:10:51,860 Studio, so in the next video we're going to look at configuring Android Studio. So 152 00:10:51,860 --> 00:10:55,970 do note that I've got a Mac and a Linux Android Studio install video coming up 153 00:10:55,970 --> 00:11:00,050 in the next two videos, so skip those two videos unless you want to also install 154 00:11:00,050 --> 00:11:03,829 Android studio on a Mac or Linux machine. What you want to do is now go to the 155 00:11:03,829 --> 00:11:08,540 video titled "Configure Android SDK on all three platforms" and there we'll go 156 00:11:08,540 --> 00:11:12,259 through the configuration steps we need, to get up and running in Android Studio. 157 00:11:12,259 --> 00:11:16,209 So I'll see you in the next video.