Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicated "IInAppBillingService.aidl" File - Library + App

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!!

like image 530
Johannes Muenichsdorfer Avatar asked Oct 19 '25 12:10

Johannes Muenichsdorfer


1 Answers

To solve this problem, follow these steps:

1- open project mode

  1. Delete the IInAppBillingService.aidl file

enter image description here

like image 107
Kazem Maleki Avatar answered Oct 21 '25 00:10

Kazem Maleki