Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[all] Gradle build fails for all firebase plugins #69

Closed
bigworld12 opened this issue Aug 31, 2019 · 3 comments
Closed

[all] Gradle build fails for all firebase plugins #69

bigworld12 opened this issue Aug 31, 2019 · 3 comments
Labels
type: bug Something isn't working

Comments

@bigworld12
Copy link

bigworld12 commented Aug 31, 2019

running gradle build with any firebase plugin installed will yield the following error
e.g. firebase_auth

> Task :app:processDebugGoogleServices FAILED
Parsing json file: xxx\android\app\google-services.json
         *********************************************************
WARNING: This version of firebase_auth will break your Android build if it or its dependencies aren't compatible with AndroidX.
         See https://goo.gl/CP92wY for more information on the problem and how to fix it.
         This warning prints for all Android build failures. The real root cause of the error may be unrelated.

e.g. cloud_firestore

Parsing json file: xxx\android\app\google-services.json
         *********************************************************
WARNING: This version of cloud_firestore will break your Android build if it or its dependencies aren't compatible with AndroidX.
         See https://goo.gl/CP92wY for more information on the problem and how to fix it.
         This warning prints for all Android build failures. The real root cause of the error may be unrelated.
         *********************************************************
@bigworld12
Copy link
Author

my project IS migrated to Android X
gradle.properties :

android.enableJetifier=true
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1536M

android/build.gradle

dependencies {
        classpath 'com.android.tools.build:gradle:3.4.2'
        classpath 'com.google.gms:google-services:4.3.0'
    }

gradle-wrapper.properties

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.1-all.zip

@bigworld12
Copy link
Author

ok so i got it to work by copying out the exact gradle project structure in https://github.com/FirebaseExtended/flutterfire/tree/master/packages/cloud_firestore/example/android
which had classpath 'com.android.tools.build:gradle:3.3.0'
2 gradle folders
android/gradle
android/app/gradle

i am not sure which one exactly fixed the issue, so i am leaving this open for now

@iapicca
Copy link

iapicca commented Oct 23, 2019

Hi @bigworld12
I see there's an open issue addressing the case you described.
Please follow up on that issue,
I'm closing the current one as duplicate.
If you disagree please write in the comments
and I will reopen it.
Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants