특정 경로에 해당하는 input file이 2개라 문제가 생긴다는 것 같다. stackoverflow에서 찾은 해결 방법
packaging { resources { excludes += "/META-INF/{AL2.0,LGPL2.1}" excludes += "/META-INF/gradle/incremental.annotation.processors" }
APK 패키징 과정에서 특정 파일을 제외함으로써 충돌을 방지하는 것 같다.