Snažím se používat autofill od Google placesApi a vzdálenost / mapy z Google Maps API. Běžím do kompatibilního problému, když přidám obě mé závislosti (verze 26.1.0 míst). Nicméně, když jsem se snažil opravit vlastními provedení cardview pro 27.1.1 Penalta se mapa nezobrazuje už, a říká: „My App má potíže se službami Google Play“.
Moje závislost je následující:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-maps:10.0.1'
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.android.support:design:27.1.1'
// 1. So far, Google Maps work
// 2. After adding the following code --> Compatibility issue (27.1.1 vs 26.1.0)
//implementation 'com.google.android.libraries.places:places-compat:1.1.0'
// 3. After adding the following code upfront --> My app having trouble with Google Play services
//implementation 'com.android.support:cardview-v7:27.1.1'
}
Could someone give me some insights on how I may fix this problem?
Thanks!