![]() ![]() To do so, go to your project’s gradle-wrapper.properties and check distributionUrl for the current version. To make sure that everything works fine, update your gradle to version 4.10 or higher(5.2.1 is latest at the time of writing this post). Please note that following the steps below in sequence is highly important to avoid intermediate Gradle issues. gradle.kts file extension and Gradle will consider it as a Kotlin script. Migrate to Gradle Kotlin ScriptĪ nice thing about Kotlin build script is you don’t have to do the extra setup for enabling it. “Refresh all Gradle projects” button has been life saver for me.□īut don’t worry, Just follow the steps with me and you will be just fine. Few times I had to reopen my project so that Android Studio can understand properly what is going on. Sometimes it can be a bit messy to rewrite gradle.build into files, especially when all its cache is malfunctioning during that process. Writing build scripts in Kotlin is like riding a bike□ (Except the bike is on fire□). ![]() Errors at compile time instead of runtime□.Kotlin script overcomes almost all the cons of Groovy. How cool is that! A single language to manage your whole project. I never learned Groovy but now, all I have to do is to be yourself and write Kotlin scripts like a PRO. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |