Ionic 3 GeoFence插件未正确安装

时间:2018-10-23 06:16:15

标签: cordova ionic-framework ionic3 geocoding ionic-native

当我尝试cordova plugin add cordova-plugin-geofence --save时 它给了我以下输出

Installing "cordova-plugin-geofence" for android
Installing "cordova-plugin-add-swift-support" for android
Installing "cordova-plugin-compat" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 6.3.0, failed version requirement:
      <6.3.0
Skipping 'cordova-plugin-compat' for android
Installing "es6-promise-plugin" for android
Subproject Path: CordovaLib
Adding cordova-plugin-geofence to package.json
Saved plugin info for "cordova-plugin-geofence" to config.xml

当我尝试在真实设备上运行它时,出现以下错误

Cannot find module '../cordova/platform_metadata'

我尝试了多种方法来解决此问题:

  1. 删除并添加android平台
  2. 强制删除cordova-plugin-compat并重新安装
  3. 科尔多瓦清理并建造

采取了更多步骤。但是没有运气解决这个问题。

0 个答案:

没有答案