简体   繁体   中英

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.

在此处输入图片说明

在此处输入图片说明

Change your android version. This solved for me.

cordova platform

cordova platform rm android
cordova platform add android@version_number

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM