2017-06-01 158 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. 

希望任何意志大門有幫助。