cordova - Error: Cannot find plugin.xml for plugin "phonegap-plugin-push". Please try adding it again -
i trying add phonegap-push-plugin described in doc.
i found thread listing problem no solution given.
as explain in doc, did cli in [my project folder]: ionic plugin add phonegap-plugin-push --variable sender_id="[project id google developper console]"
at firts had issue cordova , cordova-android version. updated cordova 6.3.0 6.4.0 , did cli: ionic platform rm android
remove existing version 5.2 cordova-android project.
after when ionic info
get:
- cordova cli: 6.4.0
- ionic framework version: 2.0.0-rc.0
- ionic cli version: 2.1.0
- ionic app lib version: 2.1.0-beta.1
- os:
- node version: v6.7.0
and if ionic platform ls
get: available platforms:
- amazon-fireos ~3.6.3 (deprecated)
- android ~6.0.0
- blackberry10 ~3.8.0
- browser ~4.1.0
- firefoxos ~3.6.3
- webos ~3.7.0
- windows ~4.4.0
- wp8 ~3.8.2 (deprecated)
now problem left when launch ionic plugin add phonegap-plugin-push --variable sender_id="[project id google developper console]"
message:
error: cannot find plugin.xml plugin "phonegap-plugin-push". please try adding again.
any idea?
i experienced similar error albeit when trying add storage plugin:
error: cannot find plugin.xml plugin "cordova-sqlite-storage". please try adding again.
i found out plugin folder somehow still existed in myapp/plugins such had myapp/plugins/cordova-sqlite-storage
i deleted myapp/plugins/cordova-sqlite-storage
plugin directory , added plugin afresh , successful.
Comments
Post a Comment