본문 바로가기
Error

More than one file was found with OS independent path 'META-INF/DEPENDENCIES'

by 지구 2018. 6. 14.

More than one file was found with OS independent path 'META-INF/DEPENDENCIES'

More than one file was found with OS independent path 'META-INF/ASL2.0'

 

원인 : 안드로이드 자체 프레임워크 API와 내가 넣어준 서드파티 라이브러리 프레임워크 API와의 충돌이 나기 때문

해결 : build.gradle 파일에서 buildTypes 바로 밑에 아래 코드를 넣어주면 해결됨.

packagingOptions {
    exclude 'META-INF/DEPENDENCIES'
    exclude 'META-INF/ASL2.0'
}

 

덧, 예전 안드로이드 버전에서는 'META-INF/LICENSE' 까지 에러가 났었는데, 안드로이드가 이번에 업데이트하면서 이 에러는 안난다고 함.

반응형

댓글