android - 无法为 com.android.build.gradle.internal.api.ApplicationVariantImpl 类型的对象获取未知属性 'mergeResourcesProvider'

标签 android react-native gradle webrtc

我想在我的 react-native 应用程序中集成 webrtc,安装了 react-native 的包 react-native-webrtc .完成了文档中提到的所有步骤,但我收到错误消息

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.terminal view while run "react-native run-android"

最佳答案

react-native-webrtc 文档有点复杂。
从 react-native 版本 .60 及更高版本开始,不需要链接,链接会自动发生。
就做npm install react-native-webrtc

关于android - 无法为 com.android.build.gradle.internal.api.ApplicationVariantImpl 类型的对象获取未知属性 'mergeResourcesProvider',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61593387/

相关文章:

Android:图库 Intent 返回 resultCode == RESULT_CANCELED

android - 如何在android studio中混淆包名

android - 在 libgdx 中绘制和存储用户的触摸路径

sqlite - React-native SQLite 批量插入

android-studio - 无法解析 '...' : Could not resolve project :react-native-navigation 的依赖关系

Android Studio & Gradle : Multiple dex files

android - Android NDK:断言失败:LOCAL_MAKEFILE未定义

gradle - gradle ant排除多个文件

java - 需要更多关于如何将文本设置为 Fragment 内的 TextView 的说明

javascript - 如何在 react-native-reanimated 中聆听值(value)变化?