无法解决 github 依赖项,即使我的过程是正确的

Cannot resolve github dependency even though my process is correct

基本上问题是我无法解决 GitHub 依赖项,即使我将其添加到项目级别 build.gradle。

build.gradle(项目)

allprojects {
    repositories {
    google()
    jcenter()
    maven { url "https://jitpack.io" }
    }
}

和应用级别 build.gradle

dependencies {
    implementation 'com.github.mukeshsolanki:country-picker-android:<latest-version>'

我该如何解决这个问题?这可能是什么原因?我已经更新到最新版本的 Android Studio。

在应用级别 build.gradle 文件的字符串 implementation 'com.github.mukeshsolanki:country-picker-android:<latest-version>' 中,您必须将 <latest-version> 子字符串替换为库的实际版本。目前最新版本为2.0.1.

所以结果字符串应该是这样的:implementation 'com.github.mukeshsolanki:country-picker-android:2.0.1'