【问题标题】:Could not get unknown property 'mergeResourcesProvider' for object of type com.android.build.gradle.internal.api.ApplicationVariantImpl无法为 com.android.build.gradle.internal.api.ApplicationVariantImpl 类型的对象获取未知属性“mergeResourcesProvider”
【发布时间】:2020-05-04 13:28:53
【问题描述】:
我想在我的 react-native 应用程序中集成 webrtc,安装了 react-native 的包react-native-webrtc。完成了文档中提到的所有步骤,但是我收到错误消息
无法获取类型对象的未知属性“mergeResourcesProvider”
com.android.build.gradle.internal.api.ApplicationVariantImpl。
错误的原因是什么。
【问题讨论】:
标签:
android
react-native
gradle
webrtc
【解决方案1】:
react-native-webrtc 文档有点复杂。
从 react-native 版本 .60 及更高版本开始,不需要链接,链接会自动发生。
就做npm install react-native-webrtc