// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: "kotlin-kapt"
buildscript {
ext.kotlin_version = "1.3.72"
repositories {
google()
jcenter()
}
dependencies {
def retrofit_version = "2.9.0"
def coroutines_version = "1.4.2"
def lifecycle_version = "2.2.0"
classpath 'com.android.tools.build:gradle:7.0.0-alpha01'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version" // NOTE: Do not place your application dependencies here; they belong
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
// ViewModel
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
// LiveData
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
kapt "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
implementation "com.squareup.okhttp3:logging-interceptor:4.5.0"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
classpath 'com.squareup.retrofit2:retrofit:2.6.1'
то ругаться перестаёт но я не понимаю подключаются ли библеотеки