Masahiro Okubo

Caused by: com.android.builder.merge.DuplicateRelativeFileException: More than one file was found with OS independent path ‘META-INF/DEPENDENCIES’ の解決方法

Caused by: com.android.builder.merge.DuplicateRelativeFileException: More than one file was found with OS independent path ‘META-INF/DEPENDENCIES’  の解決方法

最近javaでandroid開発するようになって頻繁にエラーに出くわすので、
自分が忘れた時のために書き残したいと思います

具体的な問題点は後ほど調べますが、とりあえず以下のコードを
Project/app/bundle.gradleに追加したら治りました!

 

android {

      packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/ASL2.0'
      }

    }

 

 

目次
  1. 参考記事

参考記事

More than one file was found with OS independent path ‘META-INF/LICENSE’


関連記事

copyright© 2016-2021 Masahiro Okubo