gpt4 book ai didi

android - 错误 :Execution failed for task ':app:processDebugGoogleServices' . 安卓

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:22:48 27 4
gpt4 key购买 nike

错误:任务“:app:processDebugGoogleServices”执行失败。请通过更新 google-services 插件的版本(有关最新版本的信息可在 https://bintray.com/android/android-tools/com.google.gms.google-services/ 获得)或将 com.google.android.gms 的版本更新为 9.0.2 来修复版本冲突

这是我遇到的错误。下面是我的 gradle 文件。我已经尝试了很多 stackoverflow 的解决方案,但没有一个适用于我的情况。

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"

defaultConfig {
applicationId "com.radioaudio.motivationalaudios"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile 'com.google.android.gms:play-services:9.0.2'
compile 'com.google.firebase:firebase-ads:9.0.2'
compile 'com.google.firebase:firebase-core:9.0.2'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:multidex:1.0.1'

compile 'com.onesignal:OneSignal:2.+@aar'
compile 'com.google.android.gms:play-services-gcm:+'
compile 'com.google.android.gms:play-services-analytics:+'
compile 'com.google.android.gms:play-services-location:+'
}
apply plugin: 'com.google.gms.google-services'

最佳答案

编译

dependencies {
compile 'com.google.android.gms:play-services:9.6.1'
}

并删除

compile 'com.google.android.gms:play-services-gcm:+'
compile 'com.google.android.gms:play-services-analytics:+'
compile 'com.google.android.gms:play-services-location:+'

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

它应该工作

关于android - 错误 :Execution failed for task ':app:processDebugGoogleServices' . 安卓,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39399788/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com