我正在研究一个一切正常的android项目。添加Maps类后,我遇到了以下问题
在将Google Maps活动添加到项目之前,这里是我的Gradle依赖项
allNovelList.sortBy { (it as Novel).no }
添加类后,Android Studio将此依赖项添加到了我的Gradle中
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.squareup.retrofit2:retrofit:2.6.0'
implementation 'com.squareup.retrofit2:converter-gson:2.6.0'
implementation 'com.github.bumptech.glide:glide:4.9.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation "android.arch.lifecycle:extensions:1.1.1"
}
但是在此下出现了错误:
implementation 'com.google.android.gms:play-services-maps:17.0.0'
当我运行它时,我在日志中收到此错误:
任务':app:processDebugManifest'的执行失败
如果我删除此行,则效果很好:
implementation 'com.android.support:appcompat-v7:28.0.0'