I want to use architecture project (todo list) but get this error when i want to run project
The project is using an incompatible version (AGP 7.3.0-alpha07) of the Android Gradle plugin. Latest supported version is AGP 7.2.1
I want to use architecture project (todo list) but get this error when i want to run project
The project is using an incompatible version (AGP 7.3.0-alpha07) of the Android Gradle plugin. Latest supported version is AGP 7.2.1
Try to change AGP version to 7.2.1 in the project's build.gradle file and sync the project:
buildscript {
//...
dependencies {
classpath 'com.android.tools.build:gradle:7.2.1'
// ...
}
}
buildscript {
ext.kotlinVersion = '1.6.10'
ext.navigationVersion = '2.4.2'
ext.ktlintVersion = '0.44.0'
ext.hiltVersion = '2.42'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hiltVersion"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Setting the versions in the top-level build.gradle as seen above, worked for me.
It is important to change the kotlinVersion as well!