1 00:00:04,660 --> 00:00:08,440 In this video I'm going to show you how to download and install Android Studio, 2 00:00:08,440 --> 00:00:12,040 which is the program we're going to be using to write our Android applications 3 00:00:12,040 --> 00:00:15,549 in this course. And we're going to be doing that on a Mac, so if you're running 4 00:00:15,549 --> 00:00:19,480 a Windows or Linux machine there is a separate video for your operating 5 00:00:19,480 --> 00:00:23,320 systems in this section of the course. And in that scenario I suggest you watch 6 00:00:23,320 --> 00:00:26,980 the relevant video instead of this one. Alright, so first things first we can 7 00:00:26,980 --> 00:00:31,510 install Android Studio by just doing a search in google for "install android 8 00:00:31,510 --> 00:00:36,760 studio". We want to take the first developer.android.com link. When you 9 00:00:36,760 --> 00:00:42,850 click on that, you click over here to download the latest version of Android 10 00:00:42,850 --> 00:00:48,489 Studio, so this will generally show the latest version - you can see 3.5 for Mac. 11 00:00:48,489 --> 00:00:51,999 So I'm going to click on that download Android studio I'm going to check the 12 00:00:51,999 --> 00:00:56,049 checkbox that I agree to the conditions click on download I'm going to save that 13 00:00:56,049 --> 00:01:00,309 in my downloads folder. So a new version is already available in what's called 14 00:01:00,309 --> 00:01:03,909 the Canary channel, and what that means is that's a pre-release version for 15 00:01:03,909 --> 00:01:06,940 testing. If it's released by the time you watch this video, and it's showed up 16 00:01:06,940 --> 00:01:11,320 where it's currently showing 3.5 for me, then download the latest version. But at 17 00:01:11,320 --> 00:01:14,680 this point this is the latest version and keep in mind that we do try and keep 18 00:01:14,680 --> 00:01:18,610 these videos up to date, but with four or five new versions being released each 19 00:01:18,610 --> 00:01:22,329 year, we can't update the course quickly enough. The good news is, though, that 20 00:01:22,329 --> 00:01:25,840 generally if you choose the latest version, you'll be good to go. Alright so 21 00:01:25,840 --> 00:01:28,180 I'm just going to wait for this download to complete, you can see it's nearly 22 00:01:28,180 --> 00:01:31,320 finished, in the bottom left hand corner. 23 00:01:33,950 --> 00:01:37,880 Once it's finished we need to open the dmg file, so I'm just going to click it 24 00:01:37,880 --> 00:01:41,240 you may need to navigate to the folder where it's installed. I'm going to 25 00:01:41,240 --> 00:01:47,750 close down the browser because we've finished with that now. I'm going to drag it over 26 00:01:47,750 --> 00:01:52,400 to the Applications folder which is of course the standard way to install a Mac 27 00:01:52,400 --> 00:01:59,920 application. Give that a moment to complete. We're going to close it down. 28 00:01:59,920 --> 00:02:04,100 Now we can either navigate to the Applications folder or I can just do a 29 00:02:04,100 --> 00:02:08,630 command space then type Android - just enough for Android studio. You can see 30 00:02:08,630 --> 00:02:12,680 it's showing version 3.5. I'm going to press ENTER there and that should start 31 00:02:12,680 --> 00:02:16,880 Android studio for us. Because it's the first time I've downloaded Android 32 00:02:16,880 --> 00:02:19,459 studio, we get this pop up importantly you can see it says 33 00:02:19,459 --> 00:02:23,300 developer.android.com so it's coming from the official site I'm going to 34 00:02:23,300 --> 00:02:29,480 click on open. Now you may get a security error here. If that happens just go into 35 00:02:29,480 --> 00:02:33,590 the system preferences and click on security click on general and then allow 36 00:02:33,590 --> 00:02:37,970 it to run. In my case I haven't got that, so I'm just going to open it. As this is 37 00:02:37,970 --> 00:02:41,750 the first time installation there's no previous settings to import, so I'm just 38 00:02:41,750 --> 00:02:46,489 going to click on OK. You can see that Android studio is now 39 00:02:46,489 --> 00:02:49,459 starting. Now we're going through a wizard at this point, so I want to click 40 00:02:49,459 --> 00:02:55,790 on next here. I'm going to click on and choose custom Next. We've got a choice of 41 00:02:55,790 --> 00:02:59,000 themes here, we can choose the light theme with the light background or Darcula 42 00:02:59,000 --> 00:03:02,720 which has a dark background. That's generally better on the eyes, but 43 00:03:02,720 --> 00:03:05,420 I'm going to leave it on light because that's good. and it looks better 44 00:03:05,420 --> 00:03:10,489 on a video. Click on Next. We're going to choose make sure things everything's 45 00:03:10,489 --> 00:03:15,560 checked. I'm going to check also Android Virtual Device, noting that Android 46 00:03:15,560 --> 00:03:19,730 Studio the installation and setup wizard has automatically found the Android SDK 47 00:03:19,730 --> 00:03:23,630 location or chosen an Android SDK location, and we'll talk more about that 48 00:03:23,630 --> 00:03:29,600 in future videos. Cick on Next. Here we need to specify the amount of memory we're going 49 00:03:29,600 --> 00:03:34,579 to allocate to HAXM. So what is HAXM? Well you can see that there's a link 50 00:03:34,579 --> 00:03:38,390 there to refer to the Intel HAXM documentation for more information. What 51 00:03:38,390 --> 00:03:42,560 it is is a program that's been written by Intel, the people who actually make 52 00:03:42,560 --> 00:03:48,030 the Intel CPUs, and it speeds up the performance of the x86 emulators. 53 00:03:48,030 --> 00:03:52,170 In other words it gives you the ability to run Android applications on your Mac 54 00:03:52,170 --> 00:03:56,460 and it speeds them up by using this tool. So if you didn't have it Intel CPU you 55 00:03:56,460 --> 00:04:00,090 wouldn't be able to do that, but all current Macs, and actually Mac's going 56 00:04:00,090 --> 00:04:04,170 back quite some time, do have Intel CPUs as of the time I'm recording this, so we 57 00:04:04,170 --> 00:04:07,980 won't have a problem. So the only choice here is to decide how much memory. Now 58 00:04:07,980 --> 00:04:11,220 you can see the default here, because I've actually got 64 gig in my computer 59 00:04:11,220 --> 00:04:15,000 choice of two gigabyte has been chosen automatically and if you've got more 60 00:04:15,000 --> 00:04:18,540 than 8 gigabytes of RAM in your Mac I would suggest you leave it as the 61 00:04:18,540 --> 00:04:21,959 default, which will probably be 2. But if you've got less, then you may need to 62 00:04:21,959 --> 00:04:25,169 allocate less, depending on the amount of RAM you've actually got. In other 63 00:04:25,169 --> 00:04:30,060 words, you might need to go down to one gigabyte or even 512 megabytes. Generally 64 00:04:30,060 --> 00:04:34,560 I'd say that if you've got 8 gigabytes of RAM or more, just leave it on the 65 00:04:34,560 --> 00:04:37,560 default and you've only got four gigabytes or something like that in your 66 00:04:37,560 --> 00:04:41,640 Mac you may seriously want to consider adding more RAM to it. Ram is quite 67 00:04:41,640 --> 00:04:45,000 inexpensive these days and it's highly recommended that you have 8 gigabytes or 68 00:04:45,000 --> 00:04:49,230 more to get the most out of Android studio and using that on a Mac. Alright 69 00:04:49,230 --> 00:04:52,830 so we'll leave it on the default as I mentioned, and click on Next. We've got a 70 00:04:52,830 --> 00:04:56,490 list of things that are gonna download for us now. Click on Finish. Now the 71 00:04:56,490 --> 00:05:00,270 reason it's doing more downloading here is that we actually downloaded the 72 00:05:00,270 --> 00:05:04,020 Android Studio program, and that was the actual program that's running, now the 73 00:05:04,020 --> 00:05:08,430 setup wizard and also the Android Studio product that you'll be using. But we're 74 00:05:08,430 --> 00:05:12,510 now downloading the SDK, which is the software development kit, and that's 75 00:05:12,510 --> 00:05:16,919 the actual software that enables you to write Android applications. So it's 76 00:05:16,919 --> 00:05:20,340 actually separate and distinct from the Android Studio installer. That's why 77 00:05:20,340 --> 00:05:23,130 we're doing another set of downloading here now. I'm going to pause the video, 78 00:05:23,130 --> 00:05:29,190 and I'll come back once downloading is done. So you can see that we're getting 79 00:05:29,190 --> 00:05:34,890 towards the end of the downloading and the unzipping now. Ok it's now running 80 00:05:34,890 --> 00:05:37,919 the Intel HAXM installer, as you can see on screen. I need to enter my password 81 00:05:37,919 --> 00:05:46,620 And again, HAXM is a tool that is going to make the Android emulator - which enables 82 00:05:46,620 --> 00:05:50,040 you to run Android applications without having an Android phone on your computer - 83 00:05:50,040 --> 00:05:53,820 enables that to run a lot faster than it ordinarily would without the HAXM 84 00:05:53,820 --> 00:06:00,960 installer, so I was highly recommended to use that. Ok you can see that's now 85 00:06:00,960 --> 00:06:03,990 finished. We can see silent installation has passed. At this point I 86 00:06:03,990 --> 00:06:08,849 can click on Finish. We now see the welcome screen for Android Studio. In the 87 00:06:08,849 --> 00:06:12,240 next video we'll look at configuring Android Studio, now that it's been 88 00:06:12,240 --> 00:06:15,659 installed and the SDK has been downloaded. The steps from now on are 89 00:06:15,659 --> 00:06:19,349 largely the same regardless of which operating system you're using, so 90 00:06:19,349 --> 00:06:22,889 skip over the next video in the playlist, because that covers installing Android 91 00:06:22,889 --> 00:06:27,270 Studio on a Linux machine, and go straight to the video titled "Configure 92 00:06:27,270 --> 00:06:32,039 Android SDK on all three platforms" and we can continue the configuration. See 93 00:06:32,039 --> 00:06:34,699 you in the next video.