【问题标题】:More than one file was found with OS independent path 'META-INF/rxjava.properties'发现多个文件具有独立于操作系统的路径“META-INF/rxjava.properties”
【发布时间】:2019-11-13 11:33:31
【问题描述】:

在运行应用程序时,出现此错误多个文件被发现与操作系统无关的路径 'META-INF/rxjava.properties' 。如何从 android studio 中删除重复文件?

【问题讨论】:

    标签: android


    【解决方案1】:

    我遇到了同样的问题。我修复它的方法是在应用程序 gradle 中添加 PackagingOptions,如重复文件 rxjava.properties 中所述

    android {
          defaultConfig {
          }
          buildTypes {
          }
          packagingOptions{
          exclude 'META-INF/rxjava.properties'
          }
    }
    

    【讨论】:

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