Firebase Vision (mlvision) plugin not working

I have a simple Ionic app working fine withoiut the plugin: cordova-plugin-firebase-mlvision.
When i add this plugin to my project i get Gradle errors saying that there a some issues related to duplicate files:

How can i fix this issue?