提问者:小点点

从gms地方迁移到地方时的重复类问题-apcompat


这些是我的实现entire un app build. gradle

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'com.google.android.gms:play-services-gcm:17.0.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.percentlayout:percentlayout:1.0.0'
implementation 'com.google.firebase:firebase-database:19.2.0'
implementation 'com.google.firebase:firebase-auth:19.1.0'
implementation 'com.google.android.libraries.places:places:2.0.0'
implementation ('com.google.android.libraries.places:places-compat:2.0.0'){
    exclude group:"com.google.android.libraries.places:places-compat", module: "AutocompleteActivity"
}
implementation 'com.firebase:geofire-android:3.0.0'
implementation 'com.getkeepsafe.taptargetview:taptargetview:1.10.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

apply plugin: 'com.google.gms.google-services'


这是我遇到的构建错误:

转到留档了解如何修复依赖解析错误。


有什么提示吗?提前谢谢!


共1个答案

匿名用户

从您的gradle文件中删除它:

implementation ('com.google.android.libraries.places:places-compat:2.0.0'){
    exclude group:"com.google.android.libraries.places:places-compat", module: "AutocompleteActivity"
}

我已经解决了删除这条线的问题。