我的Google服务插件存在问题.
我将谷歌服务更新到最新版本.我从这个网站获得了依赖:https://bintray.com/android/android-tools/com.google.gms.google-services/
Error:Execution Failed for task ':app:processDeBUGGoogleServices'.> Please fix the version conflict either by updating the version of the Google-services plugin (information about the latest version is available at https://bintray.com/androID/androID-tools/com.Google.gms.Google-services/) or updating the version of com.Google.androID.gms to 11.2.0.
这是我的Gradle文件:
应用程序中的一个:
apply plugin: 'com.androID.application'androID { compileSdkVersion 25 buildToolsversion "25.0.2" defaultConfig { applicationID "********" minSdkVersion 23 targetSdkVersion 25 versionCode 1 versionname "1.0" testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner" vectorDrawables.useSupportlibrary = true } buildTypes { release { MinifyEnabled false proguardfiles getDefaultProguardfile('proguard-androID.txt'), 'proguard-rules.pro' } } packagingOptions { exclude 'meta-inf/liCENSE' exclude 'meta-inf/liCENSE-FIREBASE.txt' exclude 'meta-inf/NOTICE' }}dependencIEs { compile filetree(dir: 'libs', include: ['*.jar']) androIDTestCompile('com.androID.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.androID.support', module: 'support-annotations' }) compile('com.mikepenz:materialdrawer:5.2.0@aar') { transitive = true } compile(name: 'toolkit', ext: 'aar') compile 'com.Google.firebase:firebase-database:11.2.0' compile 'com.facebook.androID:facebook-android-sdk:[4,5)' compile 'com.androID.support:appcompat-v7:25.3.1' compile 'com.androID.support.constraint:constraint-layout:1.0.0-beta4' compile 'com.jakewharton:butterknife:8.7.0' compile 'uk.co.chrisjenx:calligraphy:2.3.0' compile 'com.jmedeisis:draglinearlayout:1.1.0' compile 'com.Google.firebase:firebase-auth:11.4.2' compile 'com.Google.gms:Google-services:3.1.1' compile 'com.firebase:firebase-clIEnt-androID:2.5.2' compile 'com.Google.firebase:firebase-storage:11.2.0' compile 'com.androID.support:design:25.3.1' compile 'com.itextpdf:itext-pdfa:5.5.10' compile 'com.itextpdf:itextg:5.5.9' compile 'com.mikepenz:Google-material-typeface:2.2.0.1@aar' compile 'com.mikepenz:Fontawesome-typeface:4.4.0.1@aar' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.mikepenz:itemanimators:0.2.4@aar' compile 'com.androID.support:support-v4:25.3.1' testCompile 'junit:junit:4.12' annotationProcessor 'com.jakewharton:butterknife-compiler:8.7.0'}apply plugin: 'com.androID.application'apply plugin: 'com.Google.gms.Google-services'
一个在项目中:
buildscript { repositorIEs { mavenCentral() } dependencIEs { classpath 'com.androID.tools.build:gradle:2.3.3' classpath 'com.Google.gms:Google-services:3.1.0' // NOTE: Do not place your application dependencIEs here; they belong // in the indivIDual module build.gradle files }}allprojects { repositorIEs { jcenter() flatDir { dirs 'libs' } maven { url "https://maven.Google.com" } }}task clean(type: Delete) { delete rootProject.buildDir}
解决方法:
使用相同版本的firebase和Google Play服务
compile 'com.Google.firebase:firebase-database:11.4.2'compile 'com.Google.firebase:firebase-auth:11.4.2'compile 'com.Google.firebase:firebase-storage:11.4.2'//Remove this dependency//compile 'com.Google.gms:Google-services:3.1.1'//Add this dependency if you need Google play services compile 'com.Google.androID.gms:play-services:11.4.2'
总结 以上是内存溢出为你收集整理的android – 错误:请通过更新google-services插件的版本来修复版本冲突全部内容,希望文章能够帮你解决android – 错误:请通过更新google-services插件的版本来修复版本冲突所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)