Version conflict updating to play-services 9.4.0 Android studio 2.2 -
i error saying
error:execution failed task ':app:processdebuggoogleservices'. > please fix version conflict either updating version of google-services plugin (information latest version available @ https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating version of com.google.android.gms 9.0.0.
i tried looking @ https://bintray.com/android/android-tools/com.google.gms.google-services/ , com.google.gms:google-services:3.0.0 seems latest. project gradle
dependencies { classpath 'com.android.tools.build:gradle:2.1.2' classpath 'com.google.gms:google-services:3.0.0' // note: not place application dependencies here; belong // in individual module build.gradle files }
and how app gradle looks like
buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' apply plugin: 'com.google.gms.google-services' repositories { maven { url 'https://maven.fabric.io/public' } } android { compilesdkversion 24 buildtoolsversion "24.0.1" uselibrary 'org.apache.http.legacy' defaultconfig { applicationid "com.myapp.preburn" minsdkversion 10 targetsdkversion 24 versioncode 14 versionname "2.0.1" renderscripttargetapi 22 renderscriptsupportmodeenabled true } buildtypes { release { lintoptions { disable 'missingtranslation' } minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } android { packagingoptions { exclude 'meta-inf/dependencies' exclude 'meta-inf/notice' exclude 'meta-inf/license' } } repositories { mavencentral() jcenter() } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile filetree(dir: 'libs', include: 'parse-*.jar') compile 'com.parse.bolts:bolts-android:1.2.0' compile 'com.android.support:appcompat-v7:24.1.1' compile 'com.mcxiaoke.volley:library:1.0.9' compile 'com.google.android.gms:play-services-gcm:9.4.0' compile 'com.google.android.gms:play-services-location:9.4.0' compile 'com.google.android.gms:play-services-maps:9.4.0' compile 'com.google.android.gms:play-services-ads:9.4.0' compile 'com.google.android.gms:play-services-plus:9.4.0' compile 'com.google.android.gms:play-services-analytics:9.4.0' compile 'me.leolin:shortcutbadger:1.1.3@aar' compile 'com.squareup.picasso:picasso:2.5.2' compile files('libs/jsoup-1.7.3.jar') compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') { transitive = true; } compile files('libs/inmobi-5.2.2.jar') compile files('libs/libadapterinmobi.jar') compile files('libs/startappadmobmediation-1.0.1.jar') compile files('libs/startappinapp-3.3.1.jar') compile 'org.adw.library:discrete-seekbar:1.0.1' compile 'com.pnikosis:materialish-progress:1.0' }
if change play services 9.0.0 compiles fine. missing here?
you need put apply plugin: 'com.google.gms.google-services'
line below dependencies
block - allows plugin determine version of play services using.
Comments
Post a Comment