No video

How to Migrate Gradle Groovy to Gradle Kotlin DSL in Android Studio

  Рет қаралды 27,639

Philipp Lackner

Philipp Lackner

Күн бұрын

In this video you'll learn how you can use the more modern version of Gradle in your Android Studio projects. We'll migrate the older Gradle Groovy step by step to Kotlin DSL.
⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:
pl-coding.com/...
💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:
pl-coding.com/...
Subscribe to my FREE newsletter for regular Android, Kotlin & Architecture advice!
pl-coding.com/...
Join this channel to get access to perks:
/ @philipplackner
Join my Discord server:
/ discord
Regular programming advice on my Instagram page: / _philipplackner_
Checkout my GitHub: github.com/phi...
You like my free content? Here you can buy me a coffee:
www.buymeacoff...

Пікірлер: 57
@nymexe
@nymexe Жыл бұрын
Pretty good 👍 You can remove the clean task completely now. Clean task automatically registered by default in Gradle.
@allanaraujo2157
@allanaraujo2157 Жыл бұрын
thank you for the tip
@jmorasot
@jmorasot Жыл бұрын
I hate the issue of AS showing errors in kotlin dsl. Great video as always, I was expecting for this one since long time ago
@abrarwiryawan
@abrarwiryawan Жыл бұрын
Cool vid as always. I want to add that you dont need to use "old" style in project level build.gradle file. You can do this instead. The repository like google and maven exist in settings.gradle file. plugins { id("com.android.application") version "7.3.1" apply false id("com.android.library") version "7.3.1" apply false id("org.jetbrains.kotlin.android") version "1.7.20" apply false } tasks.create("clean") { delete(rootProject.buildDir) }
@98harshkhulwe43
@98harshkhulwe43 5 ай бұрын
but how can i add dependencies in project level gradle file. should i add it in top level build file or settings.gradle file
@azefacknopunkwegeorge3167
@azefacknopunkwegeorge3167 Жыл бұрын
Learned a new shortcut ctrl + R, helpful indeed, thanks!
@Tuligarnio
@Tuligarnio Жыл бұрын
The Alt + J command would've been helpful when doing the migrations to select the next ocurrence of the selected text instead of using search and replace tool.
@AndroidDeveloperTips
@AndroidDeveloperTips Жыл бұрын
You can try find a pattern by including a space before or after the character you are using. Also alt click and adding multiple cursors at the end of the lines and the using hot keys like home/end or ctrl+right/left can help a lot navigating and selecting what you are trying to change much faster.
@ArthurKhazbs
@ArthurKhazbs Жыл бұрын
"Column selection mode" can be really useful too!
@syedovaiss
@syedovaiss Жыл бұрын
It's super cool we just migrated to DSL last month.
@LiranBarsisa
@LiranBarsisa Жыл бұрын
What's the benefit of this, and will there be a tool to help migrate? I think it might be hard in case of complex code there, no?
@SadeghTahani
@SadeghTahani Жыл бұрын
Perfect as always!
@emmanuelmtera5936
@emmanuelmtera5936 Жыл бұрын
Very informative 🎉
@amanverma6515
@amanverma6515 Жыл бұрын
I was just finding this yesterday, Thanks Sir
@Heineken774
@Heineken774 Жыл бұрын
Thank you Philipp you helped me a lot
@mircodev
@mircodev Жыл бұрын
Hopefully there will be a automatic migration some day.....
@maximooze3196
@maximooze3196 Жыл бұрын
oofff! there yah go boiz!! 🎉🎉
@dennisgithuku9340
@dennisgithuku9340 Жыл бұрын
Superb explanation
@ManuelNagler
@ManuelNagler Жыл бұрын
Could've used multi line edit for the dependencies. Much easier
@vengateshm2122
@vengateshm2122 Жыл бұрын
Pls add an video on version catalog as a continuation of this
@yousefshaiban8973
@yousefshaiban8973 Жыл бұрын
Thank you so much for this content
@argahutama
@argahutama Жыл бұрын
Amazing tutorial
@moumnalmunawy1806
@moumnalmunawy1806 Жыл бұрын
OK, now we need to talk about fastlane
@SanathSanathsajeevakumara
@SanathSanathsajeevakumara Жыл бұрын
Pretty Cool 👍and informative. Thanks Philipp for this content
@SanathSanathsajeevakumara
@SanathSanathsajeevakumara Жыл бұрын
@Philipp Lackner Please check about this spam message
@tinykingcontractor1396
@tinykingcontractor1396 Жыл бұрын
What about settings.gradle?
@hotohori666
@hotohori666 Жыл бұрын
The Safe Args plugin is incompatible with the Kotlin DSL. Is there any fix for this?
@dawidd6356
@dawidd6356 Жыл бұрын
I have a great idea for a video, what about Trusted web activity for jetpack compose ?
@jackcsk
@jackcsk Жыл бұрын
For the search and replace, you can use the regex to solve the close quotation. Set the matching as regex: ("|')$
@chitye-aung
@chitye-aung Жыл бұрын
Always Awesome
@JustEntertain
@JustEntertain Жыл бұрын
Why i am not able to see any link related to this project on you description?? if anyone can able to see please share
@theonline5703
@theonline5703 Жыл бұрын
let's go Australia
@Danilo-O
@Danilo-O Жыл бұрын
Imo you should avoid that sound effect when zooming in/out. I'd like to know what other people feel about that.
@GeolseuDeiGamers
@GeolseuDeiGamers Жыл бұрын
May i know what is the purpose of migrating groovy to kotlin dsl?
@hemantmahawar8834
@hemantmahawar8834 Жыл бұрын
As he mentioned for more familiarity with kotlin, it's syntax, type checking, error messages etc
@adeltarek2117
@adeltarek2117 Жыл бұрын
To ensure a streamlined approach in handling project dependencies, it is recommended to declare the dependencies along with their respective versions in a centralized source. This will enable their use in any module at a later stage while ensuring that all modules are compatible with the same version of dependencies. This method of organization can help maintain a structured and efficient workflow in project dependencies management.
@loyisomtshali
@loyisomtshali Жыл бұрын
Great video Philipp. Was hoping you'd show the versions being defined in project level gradle being used in app level gradle. Is the syntax the same as Groovy?
@maskedredstonerproz
@maskedredstonerproz Жыл бұрын
no, and in gradle kotlin the versions are defined in the gradle.properties file, and acessed in whatever gradle file you need by writing val foo by project, which fetches the property of the same name from gradle.properties, source: ktor
@loyisomtshali
@loyisomtshali Жыл бұрын
@@maskedredstonerproz thank you.
@CookingWithMasterChef
@CookingWithMasterChef Жыл бұрын
What you say about flutter ? future is kotlin android or flutter?
@Talaria.School
@Talaria.School Жыл бұрын
Thanks
@Gabrielle4101
@Gabrielle4101 Жыл бұрын
There is a good tool for that called gradle-kotlinize
@asadullahilyas
@asadullahilyas Жыл бұрын
Can't I use compose_ui_version variable with Kotlin Gradle files?
@prakashprakash-zd3om
@prakashprakash-zd3om Жыл бұрын
Hi Philipp Can you mention INR Amount for Android Multi-Module Architecture course
@nayeemdv
@nayeemdv Жыл бұрын
Hey Philipp, Can u Teach or Guide us how to solve the issues in Open Source Android Projects. Btw Thanks for The Awesome content I learned a lot from you❤❤❤
@tonnie7079
@tonnie7079 Жыл бұрын
Kotlin DSL is fun, Thx Philip. How would ensure you put compose_ui_version in one place say at the project level?
@PhilippLackner
@PhilippLackner Жыл бұрын
Use a buildSrc module
@jopadjr
@jopadjr Жыл бұрын
541st...Thanks Philipp
@RajuYadav-qm4ic
@RajuYadav-qm4ic 10 ай бұрын
kotlin DSL in Now default in android studio giraffe jetpack empty project
@pradyumnx
@pradyumnx Жыл бұрын
👍👍👍❤️❤️❤️
@SpaceGuideHub
@SpaceGuideHub Жыл бұрын
Are you from Germany Philipp?
@PhilippLackner
@PhilippLackner Жыл бұрын
Yes
@taar1
@taar1 7 ай бұрын
Since changing to build.gradle.kts my Bitrise workflow fails because it cant find build.gradle anymore. No idea how to fix this, can anyone give me a hint?
@wiiznokes2237
@wiiznokes2237 Жыл бұрын
Why make 2 language for that
@AayushSarikhada1o1
@AayushSarikhada1o1 Жыл бұрын
Content🤌🤌🤌
@IT_master_ir
@IT_master_ir Жыл бұрын
فلیپ فلیپ ، این دهن مارو سرویس کرده بود
5 Fatal Coroutine Mistakes Nobody Tells You About
18:15
Philipp Lackner
Рет қаралды 86 М.
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 1,5 МЛН
Мы сделали гигантские сухарики!  #большаяеда
00:44
Little brothers couldn't stay calm when they noticed a bin lorry #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 19 МЛН
Кадр сыртындағы қызықтар | Келінжан
00:16
How to add some library to Kotlin DSL build.gradle (settings.gradle.kts) - 2024
3:35
MobileMasters: Android & iOS Development Unleashed
Рет қаралды 863
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 75 М.
Most overpowered way to build mobile apps?
8:33
Beyond Fireship
Рет қаралды 771 М.
How to Automate Tasks Using Gradle - Android Studio Tutorial
18:55
Philipp Lackner
Рет қаралды 26 М.
Gradle Kotlin vs. Groovy DSL (side-by-side comparison)
5:16
Tom Gregory Tech
Рет қаралды 8 М.
Koin 3.2 - Improving the Kotlin Developer Experience by Arnaud Giuliani
42:12
Степан Гончаров - Gradle от A до Я
51:31
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 1,5 МЛН