[英]Cordova plugin googleplus not getting installed
I am developing an ionic 1 application with firebase integration. 我正在开发具有Firebase集成的ionic 1应用程序。 I want to add google plus authentication and use cordova-plugin-googleplus for the same. 我想添加google plus身份验证,并使用cordova-plugin-googleplus进行相同的操作。 On executing the function I get error - "TypeError: Cannot read property 'googleplus' of undefined" 执行该函数时,出现错误- “ TypeError:无法读取未定义的属性'googleplus'
I see that this is probably because the plugin is not getting installed properly. 我看到这可能是因为插件未正确安装。 I removed and added plugin again but still I get the same error. 我再次删除并添加了插件,但仍然收到相同的错误。
Ionic info 离子信息
Cordova CLI: 6.5.0
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Version: 1.3.2
Ionic CLI Version: 1.4.0
Ionic App Lib Version: 0.0.16
OS: null
Node Version: v6.10.0
I referred this post and Updating cordova and android also doesn't help. 我提到了这篇文章,并且更新cordova和android也无济于事。
The command cordova plugin list shows the plugin and I can see that in config.xml and package.json files and the repository is cloned in plugins folder. 命令cordova插件列表显示了该插件,我可以在config.xml和package.json文件中看到该插件,并且该存储库已克隆到plugins文件夹中。
Commands I tried to install the plugin 我尝试安装插件的命令
cordova plugin add cordova-plugin-googleplus --save
cordova prepare
I tried with ionic too 我也尝试过离子性
ionic plugin add cordova-plugin-googleplus
Remove all your platforms, try adding the plugin again and re-add your platforms. 删除所有平台,尝试再次添加插件,然后重新添加平台。 Is this working ? 这管用吗 ?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.