当前位置: 代码迷 >> 综合 >> android运行异常-More than one file was found with OS independent path 'META-INF/androidx.legacy_legacy-s
  详细解决方案

android运行异常-More than one file was found with OS independent path 'META-INF/androidx.legacy_legacy-s

热度:71   发布时间:2024-01-21 11:55:41.0

如题

android在导入第三方包时出现异常提醒

More than one file was found with OS independent path 'META-INF/androidx.legacy_legacy-support-core-utils.version'

针对该异常,需要在build.gradle中增加配置

packagingOptions {exclude 'META-INF/androidx.vectordrawable_vectordrawable.version'
}packagingOptions在build.gradle中的位置
android{packagingOptions {exclude 'META-INF/androidx.vectordrawable_vectordrawable.version' }
}

依次类推,出现类似异常告警时,直接对应增加一个忽略项即可

 

  相关解决方案