复制了"IInAppBillingService.aidl";档案-图书馆+应用程式 [英] Duplicated "IInAppBillingService.aidl" File - Library + App

查看:140
本文介绍了复制了"IInAppBillingService.aidl";档案-图书馆+应用程式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于将近2个月,我正在寻找以下问题的解决方案.我在我的应用程序中实现了一个库,该库还包括IInAppBillingService.aidl文件和Google的应用程序内计费库的其他部分.当我尝试编译应用程序的发行版时,它只会引发以下错误:

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

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"文件的问题.我已经尝试用以下代码排除图书馆的这一部分:

compile ('com.adobe.creativesdk:image:4.4.8') {
    exclude module: 'com.android.vending.billing'
}

它不起作用..... :(我该怎么办?您还有其他解决方案吗?我讨厌它会浪费多少时间在所有这些图书馆问题上……..

非常感谢!

解决方案

要解决此问题,请按照下列步骤操作:

1-打开项目模式

  1. 删除IInAppBillingService.aidl文件

since almost 2 months I'm searching for a solution for the following Problem. I implemented a library in my app which also includes the IInAppBillingService.aidl file and the other parts of the In App Billing Library from Google. When I'm trying to compile a release version of my app it just throws the following error:

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

For the time being I was just using this Library for in app purchases instead of putting it directly in my. This worked fine for the most part, but what really get on my nerves is that I can't change anything inside the IabHelper.class for example. Since we all no that Google In App Billing solution is sometimes buggy I wanted to edit the IabHelper.class. So now the Problem with 2 "IInAppBillingService.aidl" files is obviously back. I already tried to exclude this part of the Library with the fowlling code:

compile ('com.adobe.creativesdk:image:4.4.8') {
    exclude module: 'com.android.vending.billing'
}

It is NOT working..... :( What can I do? Do you have any other solution for this? I hate it how much time is going to waste on all those Library problems.....

Thanks a lot!!

解决方案

To solve this problem, follow these steps:

1- open project mode

  1. Delete the IInAppBillingService.aidl file

这篇关于复制了"IInAppBillingService.aidl";档案-图书馆+应用程式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆