小编Joh*_*fer的帖子

重复的"IInAppBillingService.aidl"文件 - 库+应用程序

因为差不多2个月我正在寻找以下问题的解决方案.我在我的应用程序中实现了一个库,其中还包括IInAppBillingService.aidl文件和Google的In App Billing Library的其他部分.当我试图编译我的应用程序的发布版本时,它只会抛出以下错误:

Error:Execution failed for task ':app:transformClassesWithJarMergingForRelease'.
Run Code Online (Sandbox Code Playgroud)

com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com/android/vending/billing/IInAppBillingService $ Stub $ Proxy.class

目前我只是使用这个库进行应用程序购买,而不是直接将它放在我的应用程序中.这在大多数情况下工作正常,但真正让我紧张的是我无法改变IabHelper.class中的任何内容.由于我们都不认为Google In App Billing解决方案有时会出错,所以我想编辑IabHelper.class.所以现在2"IInAppBillingService.aidl"文件的问题显然已经回来了.我已经尝试用fowlling代码排除这部分库:

compile ('com.adobe.creativesdk:image:4.4.8') {
    exclude module: 'com.android.vending.billing'
}
Run Code Online (Sandbox Code Playgroud)

它不起作用..... :(我能做什么?你还有其他解决办法吗?我讨厌浪费在所有图书馆问题上的时间.....

非常感谢!!

android gradle in-app-billing build.gradle android-gradle-plugin

2
推荐指数
1
解决办法
3640
查看次数