首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何使用不再受支持的PhoneGap插件?

如何使用不再受支持的PhoneGap插件?
EN

Stack Overflow用户
提问于 2017-08-30 23:26:42
回答 1查看 173关注 0票数 0

我正在使用这个插件检查GPS是enabled还是disabled

https://github.com/fastrde/cordova-plugin-fastrde-checkgps

但在编译应用程序时,它会显示该插件不再受支持。如何在应用程序中使用此代码/插件?我迷失了:(

下面是错误:

Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin "cordova-plugin-fastrde-checkgps@1.0.0" via npm Installing "cordova-plugin-fastrde-checkgps" at "1.0.0" for android Failed to install 'cordova-plugin-fastrde-checkgps': CordovaError: Version of installed plugin: "cordova-plugin-geolocation@2.4.3" does not satisfy dependency plugin requirement "cordova-plugin-geolocation@^1.0.1".

或者有没有人有其他的建议?

EN

回答 1

Stack Overflow用户

发布于 2017-08-31 06:26:09

这对我很有效:

  1. 以压缩格式从存储库中下载该插件。
  2. 解压缩该压缩。
  3. 在您喜欢的文本编辑器或集成开发环境中打开文件夹内的plugin.xml文件
  4. 找到此行<dependency id="cordova-plugin-geolocation"version="1.0.1" />并替换为此plugin.xml安装插件。路径应该与解压缩的文件夹相同。cordova插件添加C:\User\Desktop\cordova-plugin-fastrde-checkgps-master
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45964334

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档