Avatar ·

I'm using deprecated Gradle functions: how to fix "Deprecated Gradle features were used"?

Hello everyone! I'm a beginner Android developer using Kotlin, and I encountered a problem when building my project. After updating Gradle to version 5.0, I get an error message: "Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0". The build fails, and I can't run the application. Here is my `build.gradle` file (project level): ```kotlin // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = '1.3.31' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.4.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories {