当我尝试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'
我尝试了多种方法来解决此问题:
采取了更多步骤。但是没有运气解决这个问题。