【问题标题】:Duplicate entry IInAppBillingService重复条目 IInAppBillingService
【发布时间】:2017-11-02 20:52:30
【问题描述】:

最近我在我的 android 应用中实施了应用计费 https://developer.android.com/google/play/billing/billing_integrate.html#billing-service

然后我实现了“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' 但没有任何变化。

有人可以帮我吗?

【问题讨论】:

    标签: android duplicates


    【解决方案1】:

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

    此错误是因为您在主包中添加的 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.
    

    希望大家对门有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-26
      • 2019-10-16
      • 2012-02-15
      • 2016-07-21
      相关资源
      最近更新 更多