我正在使用这个插件检查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".
或者有没有人有其他的建议?
发布于 2017-08-31 06:26:09
这对我很有效:
<dependency id="cordova-plugin-geolocation"version="1.0.1" />并替换为此plugin.xml安装插件。路径应该与解压缩的文件夹相同。cordova插件添加C:\User\Desktop\cordova-plugin-fastrde-checkgps-masterhttps://stackoverflow.com/questions/45964334
复制相似问题