How to Fix Flutter (Android) upgrade/Gradle Issues

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
all right guys so I'm making this video because if you're like me you have not touched your flutter app in a very long time I haven't touched this in like three years so I'm just getting back into it and I'm dealing with a nightmare of working with Gradle so um I don't know hoping this guide will make some sense literally no one is helpful on the internet uh few few people were but just there's no video explaining so okay uh first step you know make sure you've got a device manager working so you can do stuff so here on the right hand side device manager and uh just choosing I got the latest here hit the plus to start it up and then you should be able to everything is pre-selected you can start and hit play and then you can debug on the bottom now I don't even know where to start I mean Gradle I don't know anything about it I I literally I wish it was an easier way of doing it every tutorial was saying go to tools and go to AGP upgrade assistant that does not work with flutter it just nothing comes up um and every other tutorials is telling me to use vs code you know I'm choosing Android Studio for a reason so okay all you guys got to do is make sure your Gradle is up to date uh with Java and everything so first step honestly go to this compatibility Matrix I'll put the link to this in the description look at the Java version Look at the Cradle version you're using I'm just sticking with what works Java 17 highly recommended um so I had to First download Java in Java 17 just do quick Google search set your environment variables so just search for environment on your start menu go down here and you have to do the Java home I do not like doing this but what you have to do it so you know just click new and just type Java home for that hold on see if I can just edit this so yeah Java home and then the value is wherever my Java is installed to I did this for user and system here um I have admin stuff on my computer anyway so I can I can do that so do the same for both of those Next Step you have Java 17 which everyone recommends as of 2023 um all right so then look at your Gradle version you want so 17 you want 7.3 and so you go to um your what is it um build.gradle give me a second it's this one outside of everything you see it's not this other build do Gradle it's not inside of app it's by itself build do Gradle version I set that to 712 sorry [Music] um I saw this somewhere online but yeah uh build Gradle 712 people were recommending it um I guess I can change that to 72 if I really wanted to um oh yeah 73 so it's set 273 I guess I'll probably change that and then you also have to make sure the cotlin version is the same one and cotlin is down here and so I'm using 73 for Gradle right so look at the left column 73 so I want to make sure I'm on 1.5 31 for cotlin um which is up here and then me think you also under let's expand Gradle here you also want to double click this and make sure this is the latest uh Gradle um distribution as well so I just kind of ghouled it I I maybe I'll put the link in the description to where to look for this but yeah you paste that distribution link and if you just click on this little run main Dart um it should go like I said I'm having other issues um mostly to do with other um modules but yeah um a lot of plug-in dependencies here Pub SEC Amo a lot of things out of date so um I mean I hope that'll kind of clear a couple things up guys yeah it's not an easy process but yeah
Info
Channel: AMP Tech
Views: 9,843
Rating: undefined out of 5
Keywords:
Id: QqG41s-OxPQ
Channel Id: undefined
Length: 4min 24sec (264 seconds)
Published: Mon Oct 16 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.