【问题标题】:More than one file was found with OS independent path 'META-INF/proguard/coroutines.pro'找到多个文件,其独立于操作系统的路径为“META-INF/proguard/coroutines.pro”
【发布时间】:2020-02-24 04:21:59
【问题描述】:

当我将 andoird 项目迁移到 androidx 时,它给出了错误超过一个文件被发现与操作系统无关的路径“META-INF/proguard/coroutines.pro”。 我搜索了很多,但没有一个解决方案无法工作。如果找到任何解决方案,请提供代码。 谢谢。

【问题讨论】:

    标签: android-studio androidx kotlin-coroutines meta-inf


    【解决方案1】:

    也许为时已晚,但您可以在 build.gradle

    中的 packagingOptions 中添加排除项
    android {
        // ...
        packagingOptions {
            exclude 'META-INF/proguard/coroutines.pro'
        }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多