【问题标题】:A problem occurred evaluating project ':@mauron85_react-native-background-geolocation-common'评估项目“:@mauron85_react-native-background-geolocation-common”时出现问题
【发布时间】:2021-04-08 01:32:18
【问题描述】:

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

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

其他解释有:

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

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

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

这个问题有解决办法吗?

【问题讨论】:

    标签: android reactjs react-native geolocation


    【解决方案1】:

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

    android.enableUnitTestBinaryResources=false
    

    【讨论】:

      猜你喜欢
      • 2020-04-08
      • 1970-01-01
      • 1970-01-01
      • 2023-02-13
      • 2022-01-07
      • 2020-08-11
      • 2021-05-25
      • 2022-08-13
      • 2021-06-26
      相关资源
      最近更新 更多