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 {
No answers yet.
Log in to leave an answer
Blogs
C++ in 2025: Overview of Key Innovations and Trends
Caching in PHP: How to Speed Up Your Site and Reduce Server Load
Android SDK does not see JDK: step-by-step solution with Java examples
Reflection in Java: What Is It and Why Do You Need It? Complete Tutorial with Examples