Neroshan Vimaleswaran
Neroshan Vimaleswaran

Reputation: 31

How can i fix this error message saying "failed to install 'cordova-plugin-firebase'" when i try to create an android app through cordova?

I have added firebase plugin to cordova for push notification. When I try to create android app using command "cordova platform add android" I am getting error message saying failed to install 'cordova-plugin-firebase' and can any one please suggest me how can i fix this issue.

enter image description here

enter image description here

Upvotes: 0

Views: 781

Answers (1)

Norbert Molnar
Norbert Molnar

Reputation: 101

Change your android version. This solved for me.

cordova platform

cordova platform rm android
cordova platform add android@version_number

Upvotes: 0

Related Questions