我想将新的Google Places api添加到我现有的项目中,但它给出了错误的项目同步错误
我已将实施'com.google.android.libraries.places:places:1.1.0'添加到项目中
应用插件:“ com.android.application”
应用插件:“ kotlin-android”
应用插件:“ kotlin-android-extensions”
android { lintOptions { checkReleaseBuilds false //添加此 abortOnError false } signingConfigs { 配置{ keyAlias'androiddebugkey' keyPassword'android' storeFile文件('***') storePassword'android' } } 编译版本26 defaultConfig { applicationId“ 888” minSdkVersion 19 targetSdkVersion 26 版本号47 versionName“ 2.8” testInstrumentationRunner “ android.support.test.runner.AndroidJUnitRunner” multiDexEnabled是 } buildTypes { 发布 { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro' signingConfig signingConfigs.config } } }
依赖性{
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.libraries.places:places:1.1.0'
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.google.android.gms:play-services-places:15.0.1'
implementation 'com.google.firebase:firebase-messaging:17.3.0'
implementation 'com.google.firebase:firebase-auth:16.0.3'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.mikhaellopez:circularimageview:3.0.2'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.yalantis:ucrop:2.2.0-native'
implementation 'io.branch.sdk.android:library:2.+'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.android.support:multidex:1.0.1'
implementation 'com.github.d-max:spots-dialog:0.7@aar'
implementation 'net.gotev:uploadservice:2.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'com.google.android.gms:play-services-analytics:16.0.1'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation "org.jetbrains.anko:anko:$anko_version"
implementation 'us.belka:androidtoggleswitch:1.2.2'
implementation 'com.daimajia.easing:library:2.0@aar'
implementation 'com.daimajia.androidanimations:library:2.3@aar'
implementation 'net.gotev:uploadservice:3.4.2'
implementation 'com.github.clans:fab:1.6.4'
implementation 'net.gotev:uploadservice-okhttp:3.4.2'
implementation 'cn.jzvd:jiaozivideoplayer:6.3.1'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'id.zelory:compressor:2.1.0'
implementation 'com.github.WindSekirun.NaraeAudioRecorder:core:1.1.0'
implementation('com.paytm:pgplussdk:1.3.1') {
transitive = true
}
} 应用插件:“ com.google.gms.google-services”
显示错误
各种其他库都在[[15.0.1,15.0.1]]请求库com.google.android.gms:play-services-base,但解析为16.1.0。禁用插件,并使用./gradlew:app:dependencies检查您的依赖关系树。