question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

google-services plugin 4.3.0 Dependency failing

See original GitHub issue

Getting build error for google-services plugin 4.3.0 FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugRenderscript'.
> In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[1.1.0
  -rc01]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
  
  Dependency failing: androidx.fragment:fragment-ktx:1.1.0-rc01 -> androidx.fragment:fragment@[1.1.0-rc01], but fragment v
  ersion was 1.2.0-alpha01.
  
  The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
  ifact with the issue.
  -- Project 'app' depends onto androidx.navigation:navigation-ui@{strictly 2.1.0-alpha06}
  -- Project 'app' depends onto androidx.constraintlayout:constraintlayout@{strictly 2.0.0-beta2}
  -- Project 'app' depends onto androidx.lifecycle:lifecycle-extensions@2.2.0-alpha02
  -- Project 'app' depends onto com.google.android.material:material@1.1.0-alpha07
  -- Project 'app' depends onto androidx.navigation:navigation-fragment-ktx@{strictly 2.1.0-alpha06}
  -- Project 'app' depends onto com.google.android.gms:play-services-measurement-sdk@{strictly 17.0.0}
  -- Project 'app' depends onto com.google.android.gms:play-services-measurement@{strictly 17.0.0}
  -- Project 'app' depends onto androidx.navigation:navigation-ui-ktx@{strictly 2.1.0-alpha06}
  -- Project 'app' depends onto com.google.firebase:firebase-core@17.0.0
  -- Project 'app' depends onto androidx.fragment:fragment-ktx@{strictly 1.1.0-rc01}
  -- Project 'app' depends onto com.google.android.gms:play-services-base@{strictly 17.0.0}
  -- Project 'app' depends onto com.google.firebase:firebase-common@{strictly 18.0.0}
  -- Project 'app' depends onto androidx.navigation:navigation-ui-ktx@2.1.0-alpha06
  -- Project 'app' depends onto com.google.firebase:firebase-analytics@{strictly 17.0.0}
  -- Project 'app' depends onto com.google.android.gms:play-services-ads-identifier@{strictly 17.0.0}
  -- Project 'app' depends onto com.google.android.gms:play-services-measurement-base@{strictly 17.0.0}
  -- Project 'app' depends onto com.google.android.material:material@{strictly 1.1.0-alpha07}
  -- Project 'app' depends onto androidx.navigation:navigation-fragment-ktx@2.1.0-alpha06
  -- Project 'app' depends onto androidx.lifecycle:lifecycle-extensions@{strictly 2.2.0-alpha02}
  -- Project 'app' depends onto com.google.firebase:firebase-core@{strictly 17.0.0}
  -- Project 'app' depends onto androidx.fragment:fragment@{strictly 1.2.0-alpha01}
  -- Project 'app' depends onto com.google.android.gms:play-services-measurement-sdk-api@{strictly 17.0.0}
  -- Project 'app' depends onto com.google.android.gms:play-services-measurement-api@{strictly 17.0.0}
  -- Project 'app' depends onto androidx.appcompat:appcompat@{strictly 1.1.0-rc01}
  -- Project 'app' depends onto com.google.android.gms:play-services-tasks@{strictly 17.0.0}
  -- Project 'app' depends onto androidx.appcompat:appcompat@1.1.0-rc01
  -- Project 'app' depends onto com.google.firebase:firebase-iid-interop@{strictly 17.0.0}
  -- Project 'app' depends onto androidx.navigation:navigation-fragment@{strictly 2.1.0-alpha06}
  -- Project 'app' depends onto com.google.firebase:firebase-iid@{strictly 19.0.0}
  -- Project 'app' depends onto com.google.android.gms:play-services-basement@{strictly 17.0.0}
  -- Project 'app' depends onto com.google.android.gms:play-services-stats@{strictly 17.0.0}
  -- Project 'app' depends onto com.google.android.gms:play-services-measurement-impl@{strictly 17.0.0}
  -- Project 'app' depends onto androidx.constraintlayout:constraintlayout@2.0.0-beta2
  -- Project 'app' depends onto com.google.firebase:firebase-measurement-connector@{strictly 18.0.0}
  -- Project 'app' depends onto androidx.viewpager2:viewpager2@{strictly 1.0.0-alpha04}
  
  For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
  endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
  github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b
  uild.gradle file.

Desktop :

  • Gradle version: 5.5.1
  • Android Studio version 3.5 Beta 5
  • Plugin name and version: google-services:4.3.0

The dependencies in build.gradle in app module

implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:${coroutinesVersion}"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$androidCoroutinesVersion"
    implementation "com.squareup.picasso:picasso:$rootProject.picassoVersion"

    def klockVersion = "0.5.0"
    implementation "com.soywiz:klock:$klockVersion"

    def paging_version = '2.1.0'
    def work_version = '2.1.0-rc01'
    def lifecycle_version = '2.2.0-alpha02'
    def room_version = '2.1.0'
    def multidex_version = '2.0.1'

    def coordinator_version = '1.1.0-beta01'
    def appcompat_version = '1.1.0-rc01'
    def constraintLayoutVersion = '2.0.0-beta2'

//    AndroidX libs
    implementation "androidx.work:work-runtime-ktx:$work_version"
    implementation "androidx.appcompat:appcompat:$appcompat_version"
    implementation "androidx.multidex:multidex:$multidex_version"
    implementation "androidx.paging:paging-runtime-ktx:$paging_version"
    implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version" // ViewModel + LiveData
    implementation "androidx.room:room-runtime:$room_version"
    implementation "androidx.coordinatorlayout:coordinatorlayout:$coordinator_version"
    implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"

    implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
    implementation "androidx.navigation:navigation-ui-ktx:$nav_version"

    def material_version = '1.1.0-alpha07'
    def crashlytics_version = '2.10.1'

    implementation "com.google.android.material:material:$material_version"
    def firebase_core_version = '17.0.0'
    implementation "com.google.firebase:firebase-core:$firebase_core_version"
    implementation "com.crashlytics.sdk.android:crashlytics:$crashlytics_version"

    kapt "androidx.room:room-compiler:$room_version"
    kapt 'com.android.databinding:compiler:3.2.0-alpha10'

    def testing_version = '2.0.1'

    testImplementation "androidx.arch.core:core-testing:$testing_version"

    def junit_version = '4.12'
    def runner_version = '1.2.0'

    androidTestImplementation "junit:junit:$junit_version"
    androidTestImplementation "androidx.test:runner:$runner_version"
    androidTestImplementation "androidx.test:rules:$runner_version"
    androidTestImplementation 'com.google.truth:truth:0.45'
    androidTestImplementation "androidx.arch.core:core-testing:$testing_version"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

24reactions
dariush-fathiecommented, Jul 15, 2019

just add implementation 'androidx.fragment:fragment-ktx:1.2.0-alpha01' to dependencies

2reactions
keremkusmezercommented, Jul 14, 2019

I have the same problem on my build as well? Any progress on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - How to fix google play service error - Stack Overflow
One of your dependency is having different version of com.google.android.gms . Update. Firebase dependencies are having independent versions ...
Read more >
Blog - Apache Cordova
This release contains small bug fixes, dependency updates and resolves some splashscreen issues. Plugin developers can now hook into the ...
Read more >
The Google Services Gradle Plugin
Process the google-services.json file and produce Android resources that can be used in your application's code. · Add dependencies for basic libraries required ......
Read more >
Plugin with id 'com google gms google services' not found
error with Plugin with id 'com google gms google services ' not found in android studio-~-~~-~~~-~~-~-Please watch: "ዳኘ ዋለ ለብልበው ...
Read more >
`google-services:4.3.12` does not work with `firebase ...
After updating to the latest version of the Google Services Gradle plugin, this task fails with the following error:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found