Android google services plugin version conflict

jobin

I recently upgraded Android Studio to 3.1 and I am tuck with version conflict problem.My Gradle version is 4.4 and Andoid plugin version is 3.0.0. I tried changing it to 3.1.1.It gets reverted back to the previous version mumber. It is getting confusing for me,so your help is needed. When syncing I get the following message in the Build.

Version Conflict:

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.4.2.

build.gradle/app

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

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.globemaster.samples"
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    //noinspection GradleCompatible
    implementation 'com.android.support:appcompat-v7:27.0.0'
    implementation 'com.android.support:design:27.0.0'
    implementation 'com.payumoney.sdkui:plug-n-play:1.2.0'
    implementation 'com.google.firebase:firebase-auth:15.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    testImplementation 'junit:junit:4.12'
    implementation 'com.google.firebase:firebase-core:15.0.0'
    implementation 'com.squareup.retrofit2:retrofit:2.4.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0'
    implementation 'com.google.android.gms:play-services-location:15.0.0'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}

build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
        classpath 'com.google.gms:google-services:3.2.1'



        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
Gowthaman M

Move this line at last apply plugin: 'com.google.gms.google-services'

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.globemaster.samples"
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    //
    //
}
apply plugin: 'com.google.gms.google-services'

At the bottom of the (app)build.gradle script and rebuild the project.

Note:- I think that it has to do something with referencing dependencies that have not yet been created. Something like calling a variable before you even declare it

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Error: fix the version conflict (google-services plugin)

分類Dev

Google Play Services Version for Android Studio

分類Dev

Conflict on using cordova-plugin-ionic-webview version?

分類Dev

How do I know what the latest version of Google Play Services is for Android Studio?

分類Dev

Cannot resolve google play services version 15.0.2

分類Dev

cordova-plugin-firebaseはAndroidエラー用にビルドできません:com.google.android.gms:play-services-base

分類Dev

Android:LocationManagerとGoogle Play Services

分類Dev

Google Play Services version 5.2.08 too recent for my device

分類Dev

Error after upgrade Google Play Services to 11.0.0 version

分類Dev

Version conflict updating to 8.4.0

分類Dev

Ruby version gemfile conflict

分類Dev

Android Development - Google Play Services, Google Login Integration

分類Dev

Android SDK Build Tools version (23.0.3) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.2

分類Dev

Getting error after implement 'com.google.firebase:firebase-core:17.0.0' and apply plugin: 'com.google.gms.google-services'

分類Dev

Android Studio 2.2 Google Play Services同期エラー

分類Dev

Open source replacement for Google Play location services on Android

分類Dev

unable to use google Oauth with Azure mobile services in android app

分類Dev

Android: When does Google Play Services status invalid occur?

分類Dev

play-services-ads:17.0.0にアップグレードするときに、<meta-data android:name = "com.google.android.gms.version" ... "/>を削除できますか?

分類Dev

com.google.android.gms:strict-version-matcher-plugin:[15.0.0、16.0.0)に一致するバージョンが見つかりませんでした

分類Dev

Android studio checkout from Version Control: Google Cloud

分類Dev

エラー:リソースinteger / google_play_services_version(別名app:integer / google_play_services_version)が見つかりません

分類Dev

intellijのシンボル@ integer / google_play_services_versionを解決できません

分類Dev

Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to

分類Dev

Android:cordova-plugin-app-versionを使用したversionCode

分類Dev

Androidの依存関係にgoogle-play-servicesを追加する

分類Dev

同期エラー:com.google.android.gms:play-services-base:17.2.0

分類Dev

Does codenameone support activity detection which uses CMMotionActivity (IOS) and Google Play Services ActivityRecognition API (android)?

分類Dev

Android + Firebase: 最小限の Google Play Services を確実に使用する方法

Related 関連記事

  1. 1

    Error: fix the version conflict (google-services plugin)

  2. 2

    Google Play Services Version for Android Studio

  3. 3

    Conflict on using cordova-plugin-ionic-webview version?

  4. 4

    How do I know what the latest version of Google Play Services is for Android Studio?

  5. 5

    Cannot resolve google play services version 15.0.2

  6. 6

    cordova-plugin-firebaseはAndroidエラー用にビルドできません:com.google.android.gms:play-services-base

  7. 7

    Android:LocationManagerとGoogle Play Services

  8. 8

    Google Play Services version 5.2.08 too recent for my device

  9. 9

    Error after upgrade Google Play Services to 11.0.0 version

  10. 10

    Version conflict updating to 8.4.0

  11. 11

    Ruby version gemfile conflict

  12. 12

    Android Development - Google Play Services, Google Login Integration

  13. 13

    Android SDK Build Tools version (23.0.3) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.2

  14. 14

    Getting error after implement 'com.google.firebase:firebase-core:17.0.0' and apply plugin: 'com.google.gms.google-services'

  15. 15

    Android Studio 2.2 Google Play Services同期エラー

  16. 16

    Open source replacement for Google Play location services on Android

  17. 17

    unable to use google Oauth with Azure mobile services in android app

  18. 18

    Android: When does Google Play Services status invalid occur?

  19. 19

    play-services-ads:17.0.0にアップグレードするときに、<meta-data android:name = "com.google.android.gms.version" ... "/>を削除できますか?

  20. 20

    com.google.android.gms:strict-version-matcher-plugin:[15.0.0、16.0.0)に一致するバージョンが見つかりませんでした

  21. 21

    Android studio checkout from Version Control: Google Cloud

  22. 22

    エラー:リソースinteger / google_play_services_version(別名app:integer / google_play_services_version)が見つかりません

  23. 23

    intellijのシンボル@ integer / google_play_services_versionを解決できません

  24. 24

    Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to

  25. 25

    Android:cordova-plugin-app-versionを使用したversionCode

  26. 26

    Androidの依存関係にgoogle-play-servicesを追加する

  27. 27

    同期エラー:com.google.android.gms:play-services-base:17.2.0

  28. 28

    Does codenameone support activity detection which uses CMMotionActivity (IOS) and Google Play Services ActivityRecognition API (android)?

  29. 29

    Android + Firebase: 最小限の Google Play Services を確実に使用する方法

ホットタグ

アーカイブ