React-native version 0.62.2 ,Installing react-native-webrtc giving gradle error "could not get unknown property mergeResourcesProvider"

I want to integrate webrtc in my react-native application ,Installed the package and Finished all the steps mentioned in the documentation ,But im getting error message

Could not get unknown property ‘mergeResourcesProvider’ for object of type What will be the reason for the error.

I am also stuck on the same issue. @Ajith Have u got the solution?
I am new to react-native and my react-native version is also same.

@Taha39 @Ajith I am having the same issue. Did any of you manage to fix it?

I managed to fix it by following the instructions here