com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileExcep

I use android studio 2.0 version. I use the gradle to build the program, take this the question: enter image description here

I know this question in the Android studio 0.7version have the same question. I see the LinkDuplicate files copied (Android Studio 0.4.0)

But, I follow this way: enter image description here

But this method it doesn't work for me!

Could you help me? I am waiting for you!

share improve this question
 
 
update your gradle file –  curiousMind  Nov 27 '15 at 7:06
 
@Ashvi thank you , But not this question. I know this quesetion is the andorid studio 2.0 question. So i download the android studio 1.4 version, run the progrom ,It is OK ! Just because the Android studio 2.0 inner quesetion! –  GeekHades  Nov 28 '15 at 3:42

1 Answer

up vote 11 down vote accepted

I came across the same issue and found the duplicate file is nothing to do with AndroidStudio 2.0 preview, maybe it's cause by gradle. please try following:

packagingOptions {
    exclude 'META-INF/maven/com.belerweb/pinyin4j/pom.xml'
    exclude 'META-INF/maven/com.belerweb/pinyin4j/pom.properties'
}

if you have resovled the duplicate issue but come across the ClassNotFoundIssue please refre to this topic.

share improve this answer
 
 
It works for me! Thank you very much! –  GeekHades  Jan 21 at 6:37
 
not working for me, still getting the same problem! –  Lalit Poptani  Apr 13 at 14:21
 
@LalitPoptani which version of AS are you using? –  Weibo  Apr 14 at 2:09
 
@Weibo Android Studio 2.1 Preview 5 –  Lalit Poptani  Apr 14 at 5:28 

Your Answer

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值