2017-06-01 185 views
4

最近我实现了应用内结算,以我的Android应用 https://developer.android.com/google/play/billing/billing_integrate.html#billing-service重复条目IInAppBillingService

然后我实施“stickerpipe”,然后我得到这个错误 Error:Execution failed for task :app:transformClassesWithJarMergingForRelease.> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/android/vending/billing/IInAppBillingService$Stub$Proxy.class

我应该删除IInAppBillingService.aidl我添加了一个手动??我试过exclude group: 'com.android.vending.billing'但没有变化。

有人可以帮助我吗?

回答

0

错误:任务执行失败:app:transformClassesWithJarMergingForRelease。> com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com/android/vending/billing/IInAppBillingService $存根$ Proxy.class

此错误是因为您在主包中添加的IInAppBillingService类的重复条目。 请仔细检查是否已将其添加到编译器正在检测的其他宫殿。

Hint: if you added this File manually and added in gradle dependencies also like in my case. 
than try to remove this from one place. 

希望任何意志大门有帮助。