Я загрузил проект BasicSample по ссылке ниже и добавил в Android Studio, но когда я синхронизировал проект, из-за ошибки error не удалось разрешить все зависимости 'androidx'.
https://github.com/googlesamples/android-architecture-components/tree/master/BasicSample
Я искал и пробовал что-то, например, удалить папку .idea или сделать недействительным кеш, перезапустить и добавить 'android.useAndroidX = true' и 'android.enableJetifier = true' в 'gradle.properties 'но не сработало, и я получаю те же ошибки.
Ниже приведены ошибки:
Failed to resolve: androidx.databinding:databinding-runtime:3.2.1
Failed to resolve: androidx.databinding:databinding-adapters:3.2.1
Failed to resolve: androidx.appcompat:appcompat:1.0.0
Failed to resolve: androidx.legacy:legacy-support-v4:1.0.0
Failed to resolve: com.google.android.material:material:1.0.0
Install Repository and sync project
Failed to resolve: androidx.cardview:cardview:1.0.0
Failed to resolve: androidx.lifecycle:lifecycle-runtime:2.0.0
Failed to resolve: androidx.lifecycle:lifecycle-extensions:2.0.0
Failed to resolve: androidx.room:room-runtime:2.1.0-alpha06
Failed to resolve: androidx.test:runner:1.1.1
Failed to resolve: androidx.test:rules:1.1.1
Failed to resolve: androidx.room:room-testing:2.1.0-alpha06
Failed to resolve: androidx.arch.core:core-testing:2.0.1
Failed to resolve: androidx.test.espresso:espresso-core:3.1.1
Failed to resolve: androidx.test.espresso:espresso-contrib:3.1.1
Failed to resolve: androidx.test.espresso:espresso-intents:3.1.1
Failed to resolve: androidx.annotation:annotation:1.0.0
Как исправить эти ошибки?