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.

Unable to build with firebase-core-16.0.3

See original GitHub issue

Before I have submitted the issue

[x ] I have read an installation guide
[x] I know that for an iOS I need to install pods because I’ve read the installation guide
[x] I have read a linking guide and checked that everything is OK like in manual linking guide
[x] I know that before using tipsi-stripe I need to set options for my app as described in usage guide

The problem

I am unable to build my app after upgrading firebase-core dependency to 16.0.3. If I supply the global firebaseVersion as 16.0.3, I get the error:

  • What went wrong: Failed to capture snapshot of input files for task ‘:tipsi-stripe:compileDebugAidl’ property ‘importDirs’ during up-to-date check.

The library com.google.firebase:firebase-iid is being requested by various other libraries at [[17.0.2,17.0.2]], but resolves to 16.0.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

If I do not include firebaseVersion I get:

Failed to capture snapshot of input files for task ‘:tipsi-stripe:compileReleaseAidl’ property ‘importDirs’ during up-to-date check.

The library com.google.firebase:firebase-analytics is being requested by various other libraries at [[16.0.3,16.0.3]], but resolves to 11.8.0. Disable the plugin and check your depen

Environment

  • tipsi-stripe version: 5.6.0
  • Last tipsi-stripe version where the issue was not reproduced (if applicable): n/a (also had issue with 5.2.1)
  • iOS or Android: Android
  • OS version:
  • React-Native version: 0.57
  • (Android only) com.google.firebase:firebase-core version: 16.0.3
  • (Android only) com.google.android.gms:play-services-base version: 15.0.1

Links to logs and sources

build.gradle and app/build.gradle

For Android, please provide the following sections from android/app/build.gradle: ext { buildToolsVersion = “27.0.3” minSdkVersion = 16 compileSdkVersion = 27 targetSdkVersion = 26 supportLibVersion = “27.1.1” firebaseVersion = “16.0.3” googlePlayServicesVersion = “15.0.1” } multiDexEnabled true

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:20 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
n1xncommented, Oct 4, 2018

your_project/build.grade

Downgrade google-services and have a nice day

buildscript {
    ext {
        buildToolsVersion = "27.0.3"
        minSdkVersion = 21
        compileSdkVersion = 27
        targetSdkVersion = 26
        supportLibVersion = "27.1.1"
        googlePlayServicesVersion = "15.0.1"
        androidMapsUtilsVersion = "0.5+"
        firebaseVersion = "16.0.3"
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3'
        classpath 'com.google.gms:google-services:3.2.1' // Downgrade any version to 3.2.1, until lib is updated
    }
}
1reaction
jbernhardt23commented, Jun 9, 2019

I’m actually using other firebase dependencies myself and was getting this issue. I updated my google services to 4.2.0 instead of downgrading it.

classpath 'com.google.gms:google-services:4.2.0'

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to resolve: com.google.firebase:firebase-core:16.0.1
To fix this issue I followed Google firebase integration guidelines and did the following changes in my app/build.gradle and project/build.
Read more >
Firebase Android SDK Release Notes - Google
To fix this build failure, you can follow one of two options: Add the listed compileOptions from the error message to your app-level...
Read more >
Release notes | ML Kit - Google Developers
On iOS, upgraded the version range of FirebaseCore and ... warning will now cause an error when building Kotlin code or using Java...
Read more >
Version Conflicts between Firebase Analytics ... - Google Groups
com.google.firebase:firebase-common:16.0.3 ... com.google.firebase:firebase-core:16.0.4 ... CommandInvokationFailure: Gradle build failed.
Read more >
Could not build Objective-C module 'Firebase'
When I compile the application I get an error equal to this: Could not build Objective-C module 'Firebase'. This error appears in "Import...
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