java.lang.ClassNotFoundException: com.android.billingclient.api.PurchasesUpdatedListener

Hi,
After I've updated from 2.0.0 to 2.2.0 I get the following runtimer error on Android when I initialize IAP:
AndroidJavaException: java.lang.ClassNotFoundException: com.android.billingclient.api.PurchasesUpdatedListener

Log immediately before:
generic [331] [1] Initialize info 15:10:25
generic [331] [1] UnityIAP Version: 2.2.0 15:10:25

I'm using proguard minify to keep the public function count below the 6xxxx something threshold.

I'm also using the attached gradle file.

Unity version is 2019.4.9

Did the build with mono runtime.

Any help or suggestions would be much appreciated.

6519618--735384--mainTemplate.txt (4.5 KB)

Same issue for me after upgrading to Unity IAP 2.2.0 (from 2.1.1)
AndroidJavaException:java.lang.ClassNotFoundException:com.android.billingclient.api.PurchasesUpdatedListener

Note that I have tried both with Unity 2020.1.10f1 and 2020.1.13f1 and I am building with IL2CPP.

Is it possible that the new billing-3.0.1.aar is somehow not making its way into the executable? Looks like there was a different named .aar in the previous version of the package.

Same exact issue just now after updating to IAP 2.2.0. Also using Proguard.

same here.
@ : are you testing before releasing?
Developing is hard enough. We do not want to deal with that kind of s*** !

1 Like

Try adding the below to proguard

-keep class com.android.billingclient.** {*; }

Anyway 2.2.0 has serious issue of IAP failing for the session if you cancel a purchase.

2 Likes

Thanks Raghavendra, your advice works in my case.

Hello all,

Thank you all for your feedback, indeed there is a bug and using what @Raghavendra suggested will fix it.

During our testing we didn't enable proguard, nor R8. I can assure you this will not happen again, it's permanently in our test projects and is already an automated test. I am truly sorry about this. We are releasing right now a 2.2.1 IAP for the Asset Store, this does not contain the fix for this issue but will fix many other small issues. A new release 2.2.2 is on the way with this fix.

I've added that line in proguard but it seems that it does not work for me. Unity2017.4.40, Unity IAP 2.2.1

Build for Android fails with this error:

CommandInvokationFailure: Gradle build failed.
C:/Program Files/Java/jdk1.8.0_251\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2017.4.40f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

stderr[
C:\40\Temp\gradleOut\proguard-user.txt:3:41: D8: Expected char '-' at C:\40\Temp\gradleOut\proguard-user.txt:2:40
-keep class com.android.billingclient. ** {*; }
                                       ^

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':transformClassesAndResourcesWithR8ForRelease'.
> com.android.tools.r8.CompilationFailedException: Compilation failed to complete

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 10s
]
stdout[
> Task :preBuild UP-TO-DATE
> Task :extractProguardFiles UP-TO-DATE
> Task :GoogleMobileAdsAppLovinMediation:preBuild UP-TO-DATE
> Task :GoogleMobileAdsAppLovinMediation:preReleaseBuild UP-TO-DATE
> Task :GoogleMobileAdsAppLovinMediation:checkReleaseManifest
> Task :GoogleMobileAdsAppLovinMediation:processReleaseManifest
> Task :GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE
> Task :GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE
> Task :GoogleMobileAdsPlugin.androidlib:checkReleaseManifest
> Task :GoogleMobileAdsPlugin.androidlib:processReleaseManifest
> Task :unity-android-resources:preBuild UP-TO-DATE
> Task :unity-android-resources:preReleaseBuild UP-TO-DATE
> Task :unity-android-resources:checkReleaseManifest
> Task :unity-android-resources:processReleaseManifest
> Task :preReleaseBuild UP-TO-DATE
> Task :GoogleMobileAdsAppLovinMediation:compileReleaseAidl NO-SOURCE
> Task :GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE
> Task :unity-android-resources:compileReleaseAidl NO-SOURCE
> Task :compileReleaseAidl NO-SOURCE
> Task :GoogleMobileAdsAppLovinMediation:packageReleaseRenderscript NO-SOURCE
> Task :GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unity-android-resources:packageReleaseRenderscript NO-SOURCE
> Task :compileReleaseRenderscript NO-SOURCE
> Task :checkReleaseManifest UP-TO-DATE
> Task :generateReleaseBuildConfig UP-TO-DATE
> Task :prepareLintJar UP-TO-DATE
> Task :generateReleaseSources UP-TO-DATE
> Task :GoogleMobileAdsAppLovinMediation:compileReleaseRenderscript NO-SOURCE
> Task :GoogleMobileAdsAppLovinMediation:generateReleaseBuildConfig
> Task :GoogleMobileAdsAppLovinMediation:generateReleaseResValues
> Task :GoogleMobileAdsAppLovinMediation:generateReleaseResources
> Task :GoogleMobileAdsAppLovinMediation:packageReleaseResources
> Task :GoogleMobileAdsAppLovinMediation:generateReleaseRFile
> Task :GoogleMobileAdsAppLovinMediation:prepareLintJar UP-TO-DATE
> Task :GoogleMobileAdsAppLovinMediation:generateReleaseSources
> Task :GoogleMobileAdsAppLovinMediation:javaPreCompileRelease
> Task :GoogleMobileAdsAppLovinMediation:compileReleaseJavaWithJavac
> Task :GoogleMobileAdsAppLovinMediation:bundleLibCompileRelease
> Task :GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig
> Task :GoogleMobileAdsPlugin.androidlib:generateReleaseResValues
> Task :GoogleMobileAdsPlugin.androidlib:generateReleaseResources
> Task :GoogleMobileAdsPlugin.androidlib:packageReleaseResources
> Task :GoogleMobileAdsPlugin.androidlib:generateReleaseRFile
> Task :GoogleMobileAdsPlugin.androidlib:prepareLintJar UP-TO-DATE
> Task :GoogleMobileAdsPlugin.androidlib:generateReleaseSources
> Task :GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease
> Task :GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac
> Task :GoogleMobileAdsPlugin.androidlib:bundleLibCompileRelease
> Task :unity-android-resources:compileReleaseRenderscript NO-SOURCE
> Task :unity-android-resources:generateReleaseBuildConfig
> Task :unity-android-resources:generateReleaseResValues
> Task :unity-android-resources:generateReleaseResources
> Task :unity-android-resources:packageReleaseResources
> Task :unity-android-resources:generateReleaseRFile
> Task :unity-android-resources:prepareLintJar UP-TO-DATE
> Task :unity-android-resources:generateReleaseSources
> Task :unity-android-resources:javaPreCompileRelease
> Task :unity-android-resources:compileReleaseJavaWithJavac
> Task :unity-android-resources:bundleLibCompileRelease
> Task :javaPreCompileRelease UP-TO-DATE
> Task :mainApkListPersistenceRelease UP-TO-DATE
> Task :generateReleaseResValues UP-TO-DATE
> Task :generateReleaseResources UP-TO-DATE
> Task :mergeReleaseResources UP-TO-DATE
> Task :createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :processReleaseManifest
> Task :processReleaseResources
> Task :compileReleaseJavaWithJavac UP-TO-DATE
> Task :compileReleaseSources UP-TO-DATE
> Task :GoogleMobileAdsAppLovinMediation:prepareLintJarForPublish
> Task :GoogleMobileAdsPlugin.androidlib:prepareLintJarForPublish
> Task :unity-android-resources:prepareLintJarForPublish
> Task :lintVitalRelease
> Task :mergeReleaseShaders UP-TO-DATE
> Task :compileReleaseShaders UP-TO-DATE
> Task :generateReleaseAssets UP-TO-DATE
> Task :GoogleMobileAdsAppLovinMediation:mergeReleaseShaders
> Task :GoogleMobileAdsAppLovinMediation:compileReleaseShaders
> Task :GoogleMobileAdsAppLovinMediation:generateReleaseAssets
> Task :GoogleMobileAdsAppLovinMediation:packageReleaseAssets
> Task :GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders
> Task :GoogleMobileAdsPlugin.androidlib:compileReleaseShaders
> Task :GoogleMobileAdsPlugin.androidlib:generateReleaseAssets
> Task :GoogleMobileAdsPlugin.androidlib:packageReleaseAssets
> Task :unity-android-resources:mergeReleaseShaders
> Task :unity-android-resources:compileReleaseShaders
> Task :unity-android-resources:generateReleaseAssets
> Task :unity-android-resources:packageReleaseAssets
> Task :mergeReleaseAssets
> Task :validateSigningRelease UP-TO-DATE
> Task :signingConfigWriterRelease UP-TO-DATE
> Task :processReleaseJavaRes NO-SOURCE
> Task :GoogleMobileAdsAppLovinMediation:processReleaseJavaRes NO-SOURCE
> Task :GoogleMobileAdsAppLovinMediation:bundleLibResRelease
> Task :GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE
> Task :GoogleMobileAdsPlugin.androidlib:bundleLibResRelease
> Task :unity-android-resources:processReleaseJavaRes NO-SOURCE
> Task :unity-android-resources:bundleLibResRelease
> Task :transformResourcesWithMergeJavaResForRelease UP-TO-DATE
> Task :GoogleMobileAdsAppLovinMediation:bundleLibRuntimeRelease
> Task :GoogleMobileAdsAppLovinMediation:mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeRelease
> Task :GoogleMobileAdsPlugin.androidlib:mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :unity-android-resources:bundleLibRuntimeRelease
> Task :unity-android-resources:mergeReleaseConsumerProguardFiles UP-TO-DATE

> Task :transformClassesAndResourcesWithR8ForRelease FAILED
R8 is the new Android code shrinker. If you experience any issues, please file a bug at
https://issuetracker.google.com, using 'Shrinker (R8)' as component name. You can
disable R8 by updating gradle.properties with 'android.enableR8=false'.
Current version is: 1.4.77 (build b74371231cb896b02f83285efb055b7c00ff64d8 from go/r8bot (luci-r8-ci-archive-0-eqqf)).


Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
72 actionable tasks: 50 executed, 22 up-to-date
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1 progress, System.String error)
UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Deleting the space before the first * and it works for me.

-keep class com.android.billingclient.[COLOR=#ff4d4d]*[/COLOR]* { *; }

Thanks!

2 Likes

My bad. I have removed the extra space from my reply.


Its cool, but can i ask u about time when Unity add 222 version to store?)
Because solution from this thread not work for me((


Why is the solution mentioned here not working for you? Version 2.2.2 should be available next week.

1 Like

I'm not sure this is the right place, but I had IAP working fine, and then updated to 2.2.1 and now I can't build anymore. I tried every solution I could find, including the one suggested here, but nothing works.

The error is:
FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':launcher:transformResourcesWithMergeJavaResForRelease'. > More than one file was found with OS independent path 'billing.properties'

I appreciate any help


Because, after successful purchase, iap sends error message. And idk how fix it.

Update: Im updated iap sdk to 222 version and have next flow. After successful purchase, i have two PurchaseEventArg, on callback.

Update: In ProcessPurchase(PurchaseEventArgs args) method i recieve 2 identity args product


Please elaborate, what do you mean by two arguments? Please show your code and a screenshot.

Its really frustrating working with Unity anytime you make changes and days and days are wasted.

I have the same issue using Unity 2019.4.16f1. I updated the Unity IAP as it always keeps on prompting you and expecting that it will be something better but as always no and reading errors in the console of 2019.4.16f is ridiculous.

The above solution of proguard file didn't help us resolve the problem.

More than one file was found with OS independent path 'billing.properties'

UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

========= More=====
CommandInvokationFailure: Gradle build failed.
C:/Program Files/Java/jdk1.8.0_221\bin\java.exe -classpath "E:\Applications\Unity Editors\2019.4.16f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"

stderr[

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':launcher:transformResourcesWithMergeJavaResForRelease'.

    More than one file was found with OS independent path 'billing.properties'

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 15s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout[

Configure project :launcher
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.

Configure project :unityLibrary
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.

Configure project :unityLibrary:EasyMobile.androidlib
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.

Configure project :unityLibrary:GoogleMobileAdsPlugin.androidlib
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.

Configure project :unityLibrary:GooglePlayGamesManifest.plugin
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.

Task :unityLibrary:preBuild UP-TO-DATE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE
Task :unityLibrary:EasyMobile.androidlib:preBuild UP-TO-DATE
Task :unityLibrary:GooglePlayGamesManifest.plugin:preBuild UP-TO-DATE
Task :launcher:preBuild UP-TO-DATE
Task :unityLibrary:preReleaseBuild UP-TO-DATE
Task :unityLibrary:EasyMobile.androidlib:preReleaseBuild UP-TO-DATE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE
Task :unityLibrary:GooglePlayGamesManifest.plugin:preReleaseBuild UP-TO-DATE
Task :launcher:extractProguardFiles UP-TO-DATE
Task :unityLibrary:checkReleaseManifest UP-TO-DATE
Task :unityLibrary:EasyMobile.androidlib:checkReleaseManifest
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:checkReleaseManifest
Task :unityLibrary:GooglePlayGamesManifest.plugin:checkReleaseManifest
Task :launcher:prepareLintJar UP-TO-DATE
Task :unityLibrary:EasyMobile.androidlib:processReleaseManifest
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest
Task :unityLibrary:processReleaseManifest
Task :unityLibrary:EasyMobile.androidlib:packageReleaseRenderscript NO-SOURCE
Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE
Task :unityLibrary:generateReleaseResValues UP-TO-DATE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE
Task :unityLibrary:EasyMobile.androidlib:compileReleaseRenderscript NO-SOURCE
Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
Task :unityLibrary:GooglePlayGamesManifest.plugin:processReleaseManifest
Task :unityLibrary:EasyMobile.androidlib:generateReleaseResValues
Task :unityLibrary:compileReleaseShaders UP-TO-DATE
Task :unityLibrary:generateReleaseAssets UP-TO-DATE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues
Task :unityLibrary:EasyMobile.androidlib:generateReleaseResources
Task :unityLibrary:GooglePlayGamesManifest.plugin:packageReleaseRenderscript NO-SOURCE
Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseRenderscript NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources
Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseResValues
Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseResources
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders
Task :unityLibrary:EasyMobile.androidlib:packageReleaseResources
Task :unityLibrary:GooglePlayGamesManifest.plugin:packageReleaseResources
Task :unityLibrary:EasyMobile.androidlib:mergeReleaseShaders
Task :unityLibrary:GooglePlayGamesManifest.plugin:mergeReleaseShaders
Task :unityLibrary:EasyMobile.androidlib:compileReleaseShaders
Task :unityLibrary:EasyMobile.androidlib:generateReleaseAssets
Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseShaders
Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseAssets
Task :unityLibrary:EasyMobile.androidlib:packageReleaseAssets
Task :unityLibrary:GooglePlayGamesManifest.plugin:packageReleaseAssets
Task :unityLibrary:EasyMobile.androidlib:compileReleaseAidl NO-SOURCE
Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseAidl NO-SOURCE
Task :unityLibrary:EasyMobile.androidlib:generateReleaseRFile
Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseRFile
Task :unityLibrary:EasyMobile.androidlib:generateReleaseBuildConfig
Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseBuildConfig
Task :unityLibrary:EasyMobile.androidlib:prepareLintJar UP-TO-DATE
Task :unityLibrary:GooglePlayGamesManifest.plugin:prepareLintJar UP-TO-DATE
Task :unityLibrary:EasyMobile.androidlib:generateReleaseSources
Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseSources
Task :unityLibrary:GooglePlayGamesManifest.plugin:javaPreCompileRelease
Task :unityLibrary:EasyMobile.androidlib:javaPreCompileRelease
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:prepareLintJar UP-TO-DATE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseSources
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease
Task :unityLibrary:packageReleaseAssets
Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
Task :unityLibrary:generateReleaseResources UP-TO-DATE
Task :unityLibrary:packageReleaseResources UP-TO-DATE
Task :unityLibrary:compileReleaseAidl NO-SOURCE
Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
Task :unityLibrary:generateReleaseRFile UP-TO-DATE
Task :unityLibrary:prepareLintJar UP-TO-DATE
Task :unityLibrary:generateReleaseSources UP-TO-DATE
Task :unityLibrary:processReleaseJavaRes NO-SOURCE
Task :unityLibrary:mergeReleaseConsumerProguardFiles
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac
Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseJavaWithJavac
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileRelease
Task :unityLibrary:GooglePlayGamesManifest.plugin:bundleLibCompileRelease
Task :unityLibrary:GooglePlayGamesManifest.plugin:processReleaseJavaRes NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE
Task :unityLibrary:GooglePlayGamesManifest.plugin:bundleLibResRelease
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeRelease
Task :unityLibrary:GooglePlayGamesManifest.plugin:bundleLibRuntimeRelease
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseConsumerProguardFiles UP-TO-DATE
Task :unityLibrary:GooglePlayGamesManifest.plugin:mergeReleaseConsumerProguardFiles UP-TO-DATE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders
Task :unityLibrary:GooglePlayGamesManifest.plugin:mergeReleaseJniLibFolders
Task :unityLibrary:GooglePlayGamesManifest.plugin:transformNativeLibsWithMergeJniLibsForRelease
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:transformNativeLibsWithMergeJniLibsForRelease
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:transformNativeLibsWithStripDebugSymbolForRelease
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:transformNativeLibsWithIntermediateJniLibsForRelease
Task :unityLibrary:GooglePlayGamesManifest.plugin:transformNativeLibsWithStripDebugSymbolForRelease
Task :unityLibrary:GooglePlayGamesManifest.plugin:transformNativeLibsWithIntermediateJniLibsForRelease
Task :launcher:preReleaseBuild
Task :launcher:compileReleaseRenderscript NO-SOURCE
Task :launcher:generateReleaseResValues UP-TO-DATE
Task :launcher:generateReleaseResources UP-TO-DATE
Task :unityLibrary:EasyMobile.androidlib:compileReleaseJavaWithJavac
Task :unityLibrary:EasyMobile.androidlib:bundleLibCompileRelease
Task :unityLibrary:EasyMobile.androidlib:processReleaseJavaRes NO-SOURCE
Task :unityLibrary:EasyMobile.androidlib:bundleLibResRelease
Task :unityLibrary:EasyMobile.androidlib:bundleLibRuntimeRelease
Task :unityLibrary:EasyMobile.androidlib:mergeReleaseConsumerProguardFiles UP-TO-DATE
Task :unityLibrary:EasyMobile.androidlib:mergeReleaseJniLibFolders
Task :unityLibrary:EasyMobile.androidlib:transformNativeLibsWithMergeJniLibsForRelease
Task :unityLibrary:EasyMobile.androidlib:transformNativeLibsWithStripDebugSymbolForRelease
Task :unityLibrary:EasyMobile.androidlib:transformNativeLibsWithIntermediateJniLibsForRelease
Task :unityLibrary:mergeReleaseJniLibFolders
Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE
Task :unityLibrary:bundleLibCompileRelease UP-TO-DATE
Task :unityLibrary:bundleLibResRelease UP-TO-DATE
Task :unityLibrary:bundleLibRuntimeRelease UP-TO-DATE
Task :unityLibrary:transformNativeLibsWithMergeJniLibsForRelease
Task :launcher:mergeReleaseResources UP-TO-DATE
Task :launcher:checkReleaseManifest UP-TO-DATE
Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
Task :launcher:mainApkListPersistenceRelease UP-TO-DATE
Task :unityLibrary:transformNativeLibsWithStripDebugSymbolForRelease
Task :launcher:processReleaseManifest
Task :unityLibrary:transformNativeLibsWithIntermediateJniLibsForRelease
Task :launcher:bundleReleaseResources
Task :launcher:mergeReleaseShaders UP-TO-DATE
Task :launcher:compileReleaseShaders UP-TO-DATE
Task :launcher:generateReleaseAssets UP-TO-DATE
Task :launcher:mergeReleaseAssets
Task :launcher:compileReleaseAidl NO-SOURCE
Task :launcher:generateReleaseBuildConfig UP-TO-DATE
Task :launcher:generateReleaseSources UP-TO-DATE
Task :launcher:javaPreCompileRelease UP-TO-DATE
Task :launcher:processReleaseResources
Task :launcher:compileReleaseJavaWithJavac UP-TO-DATE
Task :launcher:processReleaseJavaRes NO-SOURCE
Task :launcher:transformResourcesWithMergeJavaResForRelease FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
98 actionable tasks: 67 executed, 31 up-to-date
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <303ae0e7a8d8441ab049e592bd1e2100>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <303ae0e7a8d8441ab049e592bd1e2100>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <303ae0e7a8d8441ab049e592bd1e2100>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <303ae0e7a8d8441ab049e592bd1e2100>:0)
UnityEd

@ajeets1978 It looks like you are using Easy Mobile and a Google Ads plugin, you'll need to simplify to find the issue. I might recommend to start with the Sample IAP Project here, and upgrade it to the latest IAP. Confirm that you can build. Then add your other components, and test similarly. You would need to contact Easy Mobile for support, it sounds like they are adding libraries and modifying the manifest. And always make a full project back before you upgrade components. In this case, you'll want to revert to the project version prior to the upgrade. https://discussions.unity.com/t/700293

In my case there were two BillingMode file in my project, so i delete one and problem solved...