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

Warning: The app gradle file must have a dependency on com.google.firebase:firebase-core for Firebase services to work as intended. #20

Closed
joancifo opened this issue Jun 20, 2018 · 19 comments

Comments

@joancifo
Copy link

Hello!
I love this plugin, however I see the following warning when I build for android:
Warning: The app gradle file must have a dependency on com.google.firebase:firebase-core for Firebase services to work as intended.

And for IOS:
ld: library not found for -lFirebaseCore
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

Thanks!

@chemerisuk
Copy link
Owner

This is just a warning. According to official docs the core dependency can be absent (
https://firebase.google.com/docs/cloud-messaging/android/client)

@Raykud
Copy link

Raykud commented Sep 18, 2018

@chemerisuk fyi: the official docs also state this:

Firebase now requires the app gradle file to explicitly list com.google.firebase:firebase-core as a dependency for Firebase services to work as expected.
https://developers.google.com/android/guides/releases#may_23_2018

@petermian
Copy link

so, is there a solution ?

@ajumalp
Copy link

ajumalp commented Nov 11, 2018

so, is there a solution ?

I added a line implementation 'com.google.firebase:firebase-core:16.0.5' which fixed the warning

@suvodeep4119
Copy link

suvodeep4119 commented Nov 12, 2018

I added a line implementation 'com.google.firebase:firebase-core:16.0.5' which fixed the warning

That fixed it!

@chemerisuk
Copy link
Owner

Version 1.2 now has explicit dependency on firebase-core

@srisachin093
Copy link

But when use 16.1.0 then this warning is occuring also...and 16.1.0 is the lastest one.

@renatodolza
Copy link

renatodolza commented Dec 21, 2018

image
someone help me?

Edit
I found a solution, I added the plugin cordova-plugin-firebase-core and solved it.

@sohaib33k
Copy link

so, is there a solution ?

I added a line implementation 'com.google.firebase:firebase-core:16.0.5' which fixed the warning

Thank you so much it is working

@Rawkush
Copy link

Rawkush commented Jan 3, 2019

implementation 'com.google.firebase:firebase-core:16.0.5

thanks, this fixed the warning

@ronifebri
Copy link

so, is there a solution ?

I added a line implementation 'com.google.firebase:firebase-core:16.0.5' which fixed the warning

where i must to add this line? sorry am a newbie

@xXMUKULXx
Copy link

so, is there a solution ?

I added a line implementation 'com.google.firebase:firebase-core:16.0.5' which fixed the warning

where i must to add this line? sorry am a newbie

add it in your app level build.gradle file in dependencies.

@ronifebri
Copy link

so, is there a solution ?

I added a line implementation 'com.google.firebase:firebase-core:16.0.5' which fixed the warning

where i must to add this line? sorry am a newbie

add it in your app level build.gradle file in dependencies.

which line dependencies?
I've been in the last line but failed

@Prakashap66-com
Copy link

OMG !!! when I added this "implementation 'com.google.firebase:firebase-core:16.0.5' ",in a new line,my error got automatically solved,Thans a lot.

@RangeshZone
Copy link

RangeshZone commented Mar 1, 2019

Hey users this is just a warning . You don't need to worry about it But, if you want to resolve the warning then just add this line implementation 'com.google.firebase:firebase-core:16.0.7'

Or make ensure that you use the latest version for your dependencies
such as :
implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.google.firebase:firebase-database:16.1.0'
implementation 'com.google.firebase:firebase-storage:16.1.0'

Hope your problem get solved by this

@SandyUndefined
Copy link

so, is there a solution ?

I added a line implementation 'com.google.firebase:firebase-core:16.0.5' which fixed the warning

where i must to add this line? sorry am a newbie

in build.gradle(app)
dependencies
{
//HERE
implementation 'com.google.firebase:firebase-core:16.0.5
}

@tanvir-durlove
Copy link

Somehow unfortunately I didn't get my solution using only "implementation 'com.google.firebase:firebase-core:16.0.5' "
after searching a lot I finally got my solution following this Please Change your Firebase and Google Library to same version
If you use your Assistant tool of Android Studio for automatically implement dependencies , Its possible to mismatch the version number. So in that case just make sure you use the same version of google play services and firebase.

@Michaeltetteh
Copy link

Use the latest version from the developer docs as at the time of writing the latest versions were
implementation 'com.google.firebase:firebase-database:16.1.0'
implementation 'com.google.firebase:firebase-core:16.0.8'
https://firebase.google.com/support/release-notes/android

@beck2401
Copy link

beck2401 commented Oct 6, 2019

image
someone help me?

Edit
I found a solution, I added the plugin cordova-plugin-firebase-core and solved it.

Hey,
I have the same Problem. How can i add this plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests