1 00:00:05,689 --> 00:00:07,060 So a new version of Kotlin 2 00:00:07,060 --> 00:00:09,360 has been released since the last video. 3 00:00:09,360 --> 00:00:10,800 So I thought I'd add a short video to 4 00:00:10,800 --> 00:00:12,320 do a bit of tidying up. 5 00:00:12,320 --> 00:00:14,790 We've also got a new version of Android Studio. 6 00:00:14,790 --> 00:00:19,210 Android Studio 3.1 which uses a newer version of Gradle. 7 00:00:19,210 --> 00:00:21,220 So I want to open up the TaskTimer project. 8 00:00:21,220 --> 00:00:24,710 Android Studio did pop up a dialogue strongly recommended 9 00:00:25,866 --> 00:00:29,180 that I update to version 3.3 of the Gradle plugin 10 00:00:29,180 --> 00:00:32,470 as well as version 4.10.1 of Gradle. 11 00:00:32,470 --> 00:00:33,650 So updating is easy. 12 00:00:33,650 --> 00:00:35,180 I just a matter of clicking on the update buttons. 13 00:00:35,180 --> 00:00:36,280 I'm gonna do that now. 14 00:00:38,050 --> 00:00:42,350 I'm gonna start with Android Studio 3.3.1 now 15 00:00:42,350 --> 00:00:44,223 and click on update and restart. 16 00:00:46,620 --> 00:00:48,420 And obviously I'll just fast forward this process 17 00:00:48,420 --> 00:00:51,073 so that you don't sit here watching the whole process. 18 00:00:57,857 --> 00:00:59,560 All right, so Android Studio is updated 19 00:00:59,560 --> 00:01:02,040 and it's asking me to use my settings 20 00:01:02,040 --> 00:01:03,690 on what to do with the settings. 21 00:01:03,690 --> 00:01:05,860 So I'm going to update from the previous version 22 00:01:05,860 --> 00:01:08,950 that I had installed Android 3.2 so that the settings 23 00:01:08,950 --> 00:01:10,580 are actually reused. 24 00:01:10,580 --> 00:01:12,143 I'm gonna click on that and I also 25 00:01:12,143 --> 00:01:15,000 have this opportunity here to delete unused versions 26 00:01:15,000 --> 00:01:16,330 of Android Studio. 27 00:01:16,330 --> 00:01:17,480 I would generally recommend that 28 00:01:17,480 --> 00:01:19,100 that's a good idea for you to do. 29 00:01:19,100 --> 00:01:21,230 I'm not gonna do that now because I like keeping 30 00:01:21,230 --> 00:01:23,580 the various versions but if you want to delete them 31 00:01:23,580 --> 00:01:25,970 just check the directory checkbox like so 32 00:01:25,970 --> 00:01:27,990 and click on delete and that would actually delete them all. 33 00:01:27,990 --> 00:01:30,850 In my case I'm just gonna click on cancel 34 00:01:30,850 --> 00:01:32,350 and keep those configurations. 35 00:01:35,750 --> 00:01:39,340 All right so it's just opening the TaskTimer project again. 36 00:01:39,340 --> 00:01:40,930 You can see we've got a note there 37 00:01:40,930 --> 00:01:42,447 that we've updated to 3.3. 38 00:01:43,636 --> 00:01:45,560 So I'm just gonna close that down. 39 00:01:45,560 --> 00:01:47,563 And we'll just let in finish off building. 40 00:01:49,050 --> 00:01:51,480 We've still got some updates to do there. 41 00:01:51,480 --> 00:01:53,970 That's gonna be the various emulators and so forth 42 00:01:53,970 --> 00:01:56,610 for the new version of Android Studio. 43 00:01:56,610 --> 00:02:00,160 But also here, notice if we hover over that, 44 00:02:00,160 --> 00:02:04,180 a newer version of Gradle, 3.2.1 is available. 45 00:02:04,180 --> 00:02:08,853 3.3.1 over here, so I'm gonna change that to 3.3.1. 46 00:02:10,270 --> 00:02:13,643 But also up here, actually what I'll do is sync that first. 47 00:02:15,620 --> 00:02:20,409 And down here you can see that Kotlin has been updated 48 00:02:20,409 --> 00:02:23,340 as well, 1.3.21 is the latest version there 49 00:02:23,340 --> 00:02:25,180 so I'm going to update that as well. 50 00:02:25,180 --> 00:02:26,710 And if you get a higher number than what you are seeing 51 00:02:26,710 --> 00:02:29,800 on the video, change it to that higher number. 52 00:02:29,800 --> 00:02:34,310 In my case I'm changing it to 1.3.21. 53 00:02:34,310 --> 00:02:35,933 We're going to click on try again. 54 00:02:37,190 --> 00:02:38,640 And we got that other message there about Gradle 55 00:02:38,640 --> 00:02:41,010 which we'll probably want to update as well. 56 00:02:41,010 --> 00:02:42,730 So we'll give that a moment. 57 00:02:42,730 --> 00:02:44,920 And it'll probably want to update to the latest 58 00:02:44,920 --> 00:02:46,363 version of Gradle as well. 59 00:02:47,430 --> 00:02:49,530 So what we can do is just close that down. 60 00:02:50,470 --> 00:02:53,060 The newest support of Gradle version is 4.10.1, 61 00:02:53,060 --> 00:02:54,210 current version is 4.6. 62 00:02:55,210 --> 00:02:57,160 So you can click on fix Gradle wrapper. 63 00:02:58,050 --> 00:03:01,430 That's going to download the new version 4.10.1 in my case. 64 00:03:01,430 --> 00:03:04,880 Which again may be a later version when you go to run this. 65 00:03:04,880 --> 00:03:08,513 It'll download and re-sync and we should be good to go. 66 00:03:14,124 --> 00:03:15,010 And you can see this is quite a major update. 67 00:03:15,010 --> 00:03:17,360 There's quite a few files there 68 00:03:17,360 --> 00:03:18,660 that are being downloaded. 69 00:03:19,540 --> 00:03:22,210 And updated in our project including the new version 70 00:03:22,210 --> 00:03:26,650 of the Gradle plugin as well as the new version 71 00:03:26,650 --> 00:03:29,800 of Kotlin that you saw me update in this video. 72 00:03:29,800 --> 00:03:31,650 Quite a few other related bits and pieces 73 00:03:31,650 --> 00:03:34,070 that all have to do with the updated version of Gradle 74 00:03:34,070 --> 00:03:36,820 that are downloading and being set up on this computer. 75 00:03:41,400 --> 00:03:43,330 Okay so we've finally finished and updating 76 00:03:43,330 --> 00:03:45,290 and what I'm going to do now is just take the opportunity 77 00:03:45,290 --> 00:03:46,583 to close that project. 78 00:03:48,116 --> 00:03:49,130 We could've done that on the other screen. 79 00:03:49,130 --> 00:03:50,323 Check for updates here. 80 00:03:51,160 --> 00:03:52,620 Then we'll let it go through and I'm gonna click 81 00:03:52,620 --> 00:03:54,970 on update now and you could see I've got quite a few 82 00:03:54,970 --> 00:03:57,270 different versions there and that's because I've 83 00:03:57,270 --> 00:04:00,020 had those installed to show you emulators 84 00:04:00,020 --> 00:04:02,340 and so forth and the various versions of Android. 85 00:04:02,340 --> 00:04:04,470 You might certainly won't have all the versions 86 00:04:04,470 --> 00:04:07,140 that I've got and it won't take as long as it will for me. 87 00:04:07,140 --> 00:04:08,820 So I'm gonna click on update now 88 00:04:08,820 --> 00:04:10,193 and accept all of those. 89 00:04:11,220 --> 00:04:13,280 Click on next and let that update. 90 00:04:13,280 --> 00:04:15,833 And I will come back once that's finished. 91 00:04:22,790 --> 00:04:24,570 All right, so the update now is finally complete 92 00:04:24,570 --> 00:04:26,480 and we're gonna click on finish 93 00:04:26,480 --> 00:04:27,670 and we'll end the video here. 94 00:04:27,670 --> 00:04:30,710 Then the next one we've just got a few corrections 95 00:04:30,710 --> 00:04:32,540 we need to make to TaskTimer. 96 00:04:32,540 --> 00:04:34,963 So let's look at doing that in the next video.