I have faced a problem, for which I cannot find any solution on a internet. I implemented this library into my project: https://github.com/anjlab/android-inapp-billing-v3
after I implemented it, when I try to generate apk this error appears:
Warning:Exception while processing task java.io.IOException: Can't write [C:\Users\tomas\StudioProjects\TalisProject\app\build\intermediates\transforms\proguard\release\jars\3\1f\main.jar] (Can't read [C:\Users\tomas\StudioProjects\TalisProject\app\build\intermediates\classes\release(;;;;;;**.class)] (Duplicate zip entry [com/android/vending/billing/IInAppBillingService$Stub$Proxy.class]))
After I added this code into my proguard:
-keep class com.android.vending.billing.**
-outjars build\intermediates\transforms\proguard\release\jars\3\1f\main.jar
-outjars out.jar(**.class)
-dontwarn com.android.vending.billing.**
Warning:Exception while processing task java.io.IOException: The output jar [C:\Users\tomas\StudioProjects\TalisProject\app\build\intermediates\transforms\proguard\release\jars\3\1f\main.jar] must have a filter, or all subsequent output jars will be empty.
Does anyone know how to solve this problem?