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 com.android.build.gradle.internal.api.ApplicationVariantImpl. 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.