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.

googlePlayServicesVersion problem [with temporary solution, should i do PR?]

See original GitHub issue

Found this bug, maybe just me or some other with the googlePlayServicesVersion problem, so am sharing my solution/fix here that takes me hours to solve:

As stated on the documentation, we have to set googlePlayServicesVersion to 15.0.0, but somehow I got this error

Failed to capture snapshot of input files for task ':app:preDebugBuild' property 'compileManifests' during up-to-date check.
The library com.google.android.gms:play-services-auth-base is being requested by various other libraries at [[15.0.0,15.0.0]], but resolves to 15.1.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

without setting the googlePlayServicesVersion, my error will fall on 15.0.1:

The library com.google.android.gms:play-services-auth-base is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 15.1.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

The temporary fix/solution in my code will be updating include.gradle (is it set by scripts/installer.js?) on these lines below

compile "com.google.android.gms:play-services-base:$googlePlayServicesVersion" -> compile "com.google.android.gms:play-services-base:15.0.1"

compile "com.google.android.gms:play-services-auth:$googlePlayServicesVersion" -> compile "com.google.android.gms:play-services-auth:16.0.0"

(I got the latest version from here: https://developers.google.com/android/guides/setup)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
andermevcommented, Sep 2, 2018

The same for me, I looked up this issue in several pages, until finally I achieved resolve it.

I am going to share you my app.gradle

dependencies {
  compile "com.google.android.gms:play-services-auth:16.0.0"
  compile fileTree(dir: 'libs', include: ['*.jar'])
}

android {  
  defaultConfig {  
    generatedDensities = []
    multiDexEnabled true
    applicationId = "org.nativescript.applicationId"
  }  
  aaptOptions {  
    additionalParameters "--no-version-vectors"  
  }

  project.ext {
    googlePlayServicesVersion = "15.0.0"
  }

  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  } 

  dexOptions {
    jumboMode true
    javaMaxHeapSize "4g"
  }
} 

def settingsGradlePath

if(project.hasProperty("appResourcesPath")){
    settingsGradlePath = "$project.appResourcesPath/Android/settings.gradle";
} else {
    settingsGradlePath = "$rootDir/../../app/App_Resources/Android/settings.gradle";
}

def settingsGradleFile = new File(settingsGradlePath);

if(settingsGradleFile.exists())
{
    apply from: settingsGradleFile;
}

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

Perhaps, there is something to fix in my file but it’s working.

I hope that it can be helped for you.

0reactions
indradhacommented, Sep 14, 2018

hi @EddyVerbruggen I’ve checked the latest version 6.8.1, but the file changes a bit different and still contain the bug, am putting the PR #908

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 >
Release Notes - Play services - Google Developers
The latest update to the play-services-location library includes the following changes: Updates an incorrect dependency to fix a SettingsClient issue. Artifacts ...
Read more >
[Android sender] Detecting GooglePlayServices availability ...
I have encountered a problem with detecting Google Play Services availability. I enable GoogleCast feature in my app when user has proper PlayServices ......
Read more >
Invalid request and unable to sign android - Page 3
I do think this is almost certainly an issue with eBay's app and the way it is ... Trying to integrate with a...
Read more >
Downloads get stuck at 99% - Google Play Community
If i do however find a fix i will come back and report my fix. ... It doesn't lose personal data or settings...
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