Friday, November 27, 2015
d.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF Androd studio Gradle
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForAnzhiDebug'.
> com.android.build.api.transform.TransformException:
com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF
/maven/com.belerweb/pinyin4j/pom.properties
File1: /Users/Hades/Work/Code/RentAgent/RentAgent/app/libs/pinyin4j-2.5.0.jar
File2: /Users/Hades/Work/Code/RentAgent/RentAgent/app/libs/pinyin4j-2.5.0.jar
================================================
I use android studio version is 2.0 , gradle version is v2.7
Today when build there is nothing error, But when i run the program in the app, The grade will take this mistake!Why ? I don't know in the start!
I search in the stackoverflow, you can see this link:
1 http://stackoverflow.com/questions/20673888/duplicate-files-copied-android-studio-0-4-0
2 https://bitbucket.org/javafxports/javafxmobile-plugin/issues/6/building-a-android-apk-with-maven
I try it, but can't resolve my qusition. So I just look the error info. I found that, My jar just install once time. I check my build.gradle file. I confirm this! So just install once time!
I check found the pinyin4j-2.5.0.jar in the program! I found in the program build/intermediates/dex-cache/cache.xml restore two pinyin4j-2.5.0.jar
附录:
1 http://stackoverflow.com/questions/20673888/duplicate-files-copied-android-studio-0-4-0
2 https://bitbucket.org/javafxports/javafxmobile-plugin/issues/6/building-a-android-apk-with-maven
Labels:
Android
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment