我想添加 Yandex 地图并向 Gradle 添加依赖项:
dependencies {
implementation 'com.yandex.android:mapkit:3.4.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.squareup.retrofit2:retrofit:2.0.2'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
}
allprojects {
repositories {
maven {
url "http://maven.google.com/"
}
google()
jcenter()
}
}
在构建解决方案时,Gradle 发誓。可能是什么问题呢
错误:无法解决:com.google.android.gms:play-services-location:11.6.2 在项目结构对话框中显示受影响的模块:app
错误:无法解决:androidx.legacy:legacy-support-v4:1.0.0 显示在项目结构对话框中受影响的模块:app
错误:无法解决:受影响的核心模块:app