评估项目 ':@mauron85_react-native-background-geolocation-common' 时出现问题

时间:2021-04-08 01:32:18

标签: android reactjs react-native geolocation

我尝试克隆我的队友项目,我做了 yarn installrun android 但是当这个过程完成后,我发现一个错误说:

<块引用>

评估项目':@mauron85_react-native-background-geolocation-common'时出现问题

其他解释是:

未能应用插件 [id 'com.android.internal.library']

  1. 不推荐使用“android.enableUnitTestBinaryResources”选项。
  2. 当前默认值为“false”。
  3. 它已从当前版本的 Android Gradle 插件中删除。
  4. 单元测试功能的原始资源被移除。

我们仍然想使用这个依赖,因为它需要我们的项目,我的 React Native 版本是 0.61.5

有没有解决这个问题的办法?

1 个答案:

答案 0 :(得分:0)

在 android 文件夹中的 gradle.properties 中添加以下行。

android.enableUnitTestBinaryResources=false