Я пытаюсь перейти на SDK-клиент New Places, однако моя синхронизация build.gradle не удалась.
Проект работал нормально, пока я не попытался добавить зависимость 'com.google.android.libraries.places: place: 1.1.0' в мой build.gradle.
Я получаю эту ошибку "в библиотеке com.google.android.gms: play-services-basement запрашивается различными другими библиотеками по адресу [[15.0.1,15.0.1]], но разрешается в 16.2.0 Отключите плагин и проверьте дерево зависимостей, используя ./gradlew: app: dependencies. "
build.gradle app
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.example.csf15taa.finalyearproject"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
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'
//Android Support Design Library
implementation 'com.android.support:design:27.1.1'
//RecyclerView
implementation 'com.android.support:recyclerview-v7:27.1.1'
// Support multidex
implementation 'com.android.support:multidex:1.0.3'
// Firebase Core
implementation 'com.google.firebase:firebase-core:16.0.1'
//Firebase Authentication
implementation 'com.google.firebase:firebase-auth:16.0.2'
// Firestore Firestore
implementation 'com.google.firebase:firebase-firestore:17.0.4'
//Google Map Util, Customer Markers
implementation 'com.google.maps.android:android-maps-utils:0.5+'
//Google Locations
implementation 'com.google.android.gms:play-services-location:15.0.1'
//Google Maps
implementation 'com.google.android.gms:play-services-maps:15.0.1'
//Places
implementation 'com.google.android.libraries.places:places:1.1.0'
// glide
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
// Circle ImageView
implementation 'de.hdodenhof:circleimageview:2.2.0'
}
apply plugin: 'com.google.gms.google-services'
}
build.gradle проекта
buildscript {
repositories {
google()
jcenter()
maven{
url "https://maven.google.com"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:4.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url 'https://maven.google.com/'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}