Failed to install 'cordova-plugin-firebase': Error: Uh oh!

I am trying to install the cordova-plugin-firebase in my ionic app but it’s not working
I have cordova-android version 9.1.0
When I try to install the plugin it says

Installing “cordova-plugin-firebase” for android
Error during processing of action! Attempting to revert…
Failed to install ‘cordova-plugin-firebase’: Error: Uh oh!
EPERM: operation not permitted, unlink ‘platforms\android\app\src\main’

Please help me on this because I have tried almost more than 2 days on that but unable to find any solution for that

Thanks in advance

did you find a solution for this error! I have latest cordova-android version 11.