Suneet Limkar
Suneet Limkar

Reputation: 51

Error while adding Firebase to android using cordova

I am trying to add Firebase to the android app using Cordova to implement push notification.
so for I was able to add 'google-services.json' to the root of the project.

however when I am trying to build an android app using the command

cmd>cordova build

it's giving me following error.

Could not resolve all dependencies for configuration ':_debugApkCopy'.
Could not find com.google.firebase:firebase-core:9.0.0.

this is occurring despite adding google play services plugin to Cordova.

I am new to hybrid app building , please help me on this.thanks

Upvotes: 0

Views: 172

Answers (1)

Tushar Tyagi
Tushar Tyagi

Reputation: 327

You need 'Android support Repository'. Open sdk manager check weather this is installed or not. Install/Update it. If already installed, you may need to uninstall and reinstall Android support repository. then restart your PC

You may also install google play services and google repository. many plugins may require these two.

Upvotes: 1

Related Questions