I got this error when compile the project in the (beta) Android Studio 2.0:
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/maven/com.google.guava/guava/pom.properties File1: /Users/brian.chu/work/android/ws/flagship_phone/app/libs/ima-android-v3-3.b13.3.jar File2: /Users/brian.chu/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/18.0/cce0823396aa693798f8882e64213b1772032b09/guava-18.0.jar
and it traces back to the ima jar which include the POM files.
I manually remove pom.* files (all files under maven folder) and it works.
Could you update your maven to not include those files?
thanks!