Inicio › Foros › Lenguajes de programación, desarrollo, código fuente › Java y Kotlin › Error en import androidx.lifecycle.LiveData en Android Studio [RESUELTO] › Respuesta a: Error en import androidx.lifecycle.LiveData en Android Studio [RESUELTO]
01/09/2025 a las 19:26
#51708
Varios
Moderador
En el fichero de dependenicas build.gradle, tengo esto:
Kotlin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.core:core-ktx:1.3.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' //material implementation 'com.google.android.material:material:1.1.0' //lifecycle implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' implementation "android.arch.lifecycle:viewmodel:1.1.1" //retrofit implementation 'com.squareup.retrofit2:retrofit:2.7.2' implementation 'com.squareup.retrofit2:converter-gson:2.7.2' //recyclerview implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha03' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' } |