Geofence plugin error: Cannot find module '../../src/cordova/platform_metadata'

Hi Team,

I am new to ionic 4 and need to add geofencing to my project . After adding the plugin, I cannot build the application. It returns the following error .
Cannot find module ‘…/…/src/cordova/platform_metadata’

I use this command to add the plugin:
‘cordova plugin add cordova-plugin-geofence’

Used Versions:
Cordova-android: 8.1.0
Java: 1.8.0_24
Ionic cli: 6.1.0

Appreciate if you could help to resolve this error.

Thanks !