pinyin4j icon indicating copy to clipboard operation
pinyin4j copied to clipboard

Android Studio 3.0 duplicate entry

Open Nathaniel100 opened this issue 7 years ago • 9 comments

Error:Execution failed for task ':app:transformClassesWithStackFramesFixerForMockDebug'.

com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.builder.utils.FileCache$FileCreatorException: java.util.zip.ZipException: duplicate entry: META-INF/maven/com.belerweb/pinyin4j/pom.xml

ps: packagingOptions is not working.

Nathaniel100 avatar Sep 14 '17 02:09 Nathaniel100

Hi, I have a similar problem. I'm still looking for the solution.

https://stackoverflow.com/questions/47013535/getting-duplicate-entry-meta-inf-license-with-android-studio-3-0

fmaylinch avatar Oct 30 '17 22:10 fmaylinch

I just found a fix, I hope it helps you.

fmaylinch avatar Oct 30 '17 23:10 fmaylinch

The fix did not help me. I seems a somewhat of a workaround too. I opened the jar in two different zip toos and jar -tvf. In jar and winrar the pom.xml and pom.proerties are listed twice!!. In winexpress only once. The gradle exception says java.util.zip.ZipException so something is wrong here. In jar tvf the files are listed once during the listing of folders an once again at the end of the listing - as files. I guess gradle must handle java listings from java.util.zip / jar and not throw exception. I will try to file a more official bug report with the android community.

我也碰到了类似问题,使用 Java8 就没有问题了

wangzhzh avatar Sep 11 '18 07:09 wangzhzh

我也碰到了类似问题,使用 Java8 就没有问题了

我使用了java8,但还是有同样的问题

JayRichrd avatar Apr 17 '19 12:04 JayRichrd

把pinyin4j升级到2.5.1就好了

wangzhzh avatar Apr 17 '19 13:04 wangzhzh

把pinyin4j升级到2.5.1就好了

但是我看pinyin4j这个仓库最新的版本就仅仅只到2.5.0,2.5.1已经发布了吗?

JayRichrd avatar Apr 17 '19 13:04 JayRichrd

把pinyin4j升级到2.5.1就好了

嗯嗯,升级到2.5.1后确实就可以了

JayRichrd avatar Apr 29 '19 06:04 JayRichrd

有人知道出现这个问题最根本的原因是什么吗? image

wangzhzh avatar Aug 19 '19 05:08 wangzhzh