android - 添加 Google 地方 API 后项目同步失败
问题描述
我想将新的 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 { config { keyAlias 'androiddebugkey' keyPassword 'android' storeFile file('***') storePassword 'android' } } compileSdkVersion 26 defaultConfig { applicationId "888" minSdkVersion 19 targetSdkVersion 26 versionCode 47 versionName "2.8" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" multiDexEnabled true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'签名配置签名配置.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 检查您的依赖关系树。
解决方案
推荐阅读
- python - 将外部系统终端连接到 Spyder
- python - 编写一个 Python 程序,在列表的每个元素之前插入一个元素
- bash - mac os x 临时更改日期格式
- android - Android Studio 不会加载数据库
- xml - 从 XML 文件中删除重复节点(XSLT 转换)
- postgresql - postgresql case语句获取另一列值
- xamarin - Xamarin android运行很慢
- sorting - clojure 按关键字按字母顺序对地图值进行排序
- android - 如何在 Android 8 上获得广播 ACTION_POWER_CONNECTED
- sockets - TCP 服务器未从 TCP 客户端接收消息 (Java)