Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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

Discussion in 'Unity IAP' started by ChristianMrswordsmith, Nov 13, 2020.

  1. ChristianMrswordsmith

    ChristianMrswordsmith

    Joined:
    May 1, 2020
    Posts:
    6
    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.
     

    Attached Files:

    Last edited: Nov 13, 2020
  2. Stephane-Imbert

    Stephane-Imbert

    Joined:
    Dec 30, 2014
    Posts:
    14
    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.
     
  3. Npicouet

    Npicouet

    Joined:
    May 17, 2018
    Posts:
    27
    Same exact issue just now after updating to IAP 2.2.0. Also using Proguard.
     
  4. Kobald-Klaus

    Kobald-Klaus

    Joined:
    Jun 20, 2014
    Posts:
    127
    same here.
    @Unity: are you testing before releasing?
    Developing is hard enough. We do not want to deal with that kind of s*** !
     
    ihgyug likes this.
  5. Raghavendra

    Raghavendra

    Joined:
    Mar 14, 2014
    Posts:
    52
    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.
     
    Last edited: Nov 20, 2020
    ihgyug and NeKoFu like this.
  6. NeKoFu

    NeKoFu

    Joined:
    Jul 21, 2012
    Posts:
    1
    Thanks Raghavendra, your advice works in my case.
     
  7. MatthieuSmith_Unity3D

    MatthieuSmith_Unity3D

    Unity Technologies

    Joined:
    Oct 16, 2020
    Posts:
    23
    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.
     
  8. M_G_L

    M_G_L

    Joined:
    Apr 4, 2017
    Posts:
    7
    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:

    Code (CSharp):
    1. CommandInvokationFailure: Gradle build failed.
    2. 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"
    3.  
    4. stderr[
    5. C:\40\Temp\gradleOut\proguard-user.txt:3:41: D8: Expected char '-' at C:\40\Temp\gradleOut\proguard-user.txt:2:40
    6. -keep class com.android.billingclient. ** {*; }
    7.                                        ^
    8.  
    9. FAILURE: Build failed with an exception.
    10.  
    11. * What went wrong:
    12. Execution failed for task ':transformClassesAndResourcesWithR8ForRelease'.
    13. > com.android.tools.r8.CompilationFailedException: Compilation failed to complete
    14.  
    15. * Try:
    16. 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.
    17.  
    18. * Get more help at https://help.gradle.org
    19.  
    20. BUILD FAILED in 10s
    21. ]
    22. stdout[
    23. > Task :preBuild UP-TO-DATE
    24. > Task :extractProguardFiles UP-TO-DATE
    25. > Task :GoogleMobileAdsAppLovinMediation:preBuild UP-TO-DATE
    26. > Task :GoogleMobileAdsAppLovinMediation:preReleaseBuild UP-TO-DATE
    27. > Task :GoogleMobileAdsAppLovinMediation:checkReleaseManifest
    28. > Task :GoogleMobileAdsAppLovinMediation:processReleaseManifest
    29. > Task :GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE
    30. > Task :GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE
    31. > Task :GoogleMobileAdsPlugin.androidlib:checkReleaseManifest
    32. > Task :GoogleMobileAdsPlugin.androidlib:processReleaseManifest
    33. > Task :unity-android-resources:preBuild UP-TO-DATE
    34. > Task :unity-android-resources:preReleaseBuild UP-TO-DATE
    35. > Task :unity-android-resources:checkReleaseManifest
    36. > Task :unity-android-resources:processReleaseManifest
    37. > Task :preReleaseBuild UP-TO-DATE
    38. > Task :GoogleMobileAdsAppLovinMediation:compileReleaseAidl NO-SOURCE
    39. > Task :GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE
    40. > Task :unity-android-resources:compileReleaseAidl NO-SOURCE
    41. > Task :compileReleaseAidl NO-SOURCE
    42. > Task :GoogleMobileAdsAppLovinMediation:packageReleaseRenderscript NO-SOURCE
    43. > Task :GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE
    44. > Task :unity-android-resources:packageReleaseRenderscript NO-SOURCE
    45. > Task :compileReleaseRenderscript NO-SOURCE
    46. > Task :checkReleaseManifest UP-TO-DATE
    47. > Task :generateReleaseBuildConfig UP-TO-DATE
    48. > Task :prepareLintJar UP-TO-DATE
    49. > Task :generateReleaseSources UP-TO-DATE
    50. > Task :GoogleMobileAdsAppLovinMediation:compileReleaseRenderscript NO-SOURCE
    51. > Task :GoogleMobileAdsAppLovinMediation:generateReleaseBuildConfig
    52. > Task :GoogleMobileAdsAppLovinMediation:generateReleaseResValues
    53. > Task :GoogleMobileAdsAppLovinMediation:generateReleaseResources
    54. > Task :GoogleMobileAdsAppLovinMediation:packageReleaseResources
    55. > Task :GoogleMobileAdsAppLovinMediation:generateReleaseRFile
    56. > Task :GoogleMobileAdsAppLovinMediation:prepareLintJar UP-TO-DATE
    57. > Task :GoogleMobileAdsAppLovinMediation:generateReleaseSources
    58. > Task :GoogleMobileAdsAppLovinMediation:javaPreCompileRelease
    59. > Task :GoogleMobileAdsAppLovinMediation:compileReleaseJavaWithJavac
    60. > Task :GoogleMobileAdsAppLovinMediation:bundleLibCompileRelease
    61. > Task :GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE
    62. > Task :GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig
    63. > Task :GoogleMobileAdsPlugin.androidlib:generateReleaseResValues
    64. > Task :GoogleMobileAdsPlugin.androidlib:generateReleaseResources
    65. > Task :GoogleMobileAdsPlugin.androidlib:packageReleaseResources
    66. > Task :GoogleMobileAdsPlugin.androidlib:generateReleaseRFile
    67. > Task :GoogleMobileAdsPlugin.androidlib:prepareLintJar UP-TO-DATE
    68. > Task :GoogleMobileAdsPlugin.androidlib:generateReleaseSources
    69. > Task :GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease
    70. > Task :GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac
    71. > Task :GoogleMobileAdsPlugin.androidlib:bundleLibCompileRelease
    72. > Task :unity-android-resources:compileReleaseRenderscript NO-SOURCE
    73. > Task :unity-android-resources:generateReleaseBuildConfig
    74. > Task :unity-android-resources:generateReleaseResValues
    75. > Task :unity-android-resources:generateReleaseResources
    76. > Task :unity-android-resources:packageReleaseResources
    77. > Task :unity-android-resources:generateReleaseRFile
    78. > Task :unity-android-resources:prepareLintJar UP-TO-DATE
    79. > Task :unity-android-resources:generateReleaseSources
    80. > Task :unity-android-resources:javaPreCompileRelease
    81. > Task :unity-android-resources:compileReleaseJavaWithJavac
    82. > Task :unity-android-resources:bundleLibCompileRelease
    83. > Task :javaPreCompileRelease UP-TO-DATE
    84. > Task :mainApkListPersistenceRelease UP-TO-DATE
    85. > Task :generateReleaseResValues UP-TO-DATE
    86. > Task :generateReleaseResources UP-TO-DATE
    87. > Task :mergeReleaseResources UP-TO-DATE
    88. > Task :createReleaseCompatibleScreenManifests UP-TO-DATE
    89. > Task :processReleaseManifest
    90. > Task :processReleaseResources
    91. > Task :compileReleaseJavaWithJavac UP-TO-DATE
    92. > Task :compileReleaseSources UP-TO-DATE
    93. > Task :GoogleMobileAdsAppLovinMediation:prepareLintJarForPublish
    94. > Task :GoogleMobileAdsPlugin.androidlib:prepareLintJarForPublish
    95. > Task :unity-android-resources:prepareLintJarForPublish
    96. > Task :lintVitalRelease
    97. > Task :mergeReleaseShaders UP-TO-DATE
    98. > Task :compileReleaseShaders UP-TO-DATE
    99. > Task :generateReleaseAssets UP-TO-DATE
    100. > Task :GoogleMobileAdsAppLovinMediation:mergeReleaseShaders
    101. > Task :GoogleMobileAdsAppLovinMediation:compileReleaseShaders
    102. > Task :GoogleMobileAdsAppLovinMediation:generateReleaseAssets
    103. > Task :GoogleMobileAdsAppLovinMediation:packageReleaseAssets
    104. > Task :GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders
    105. > Task :GoogleMobileAdsPlugin.androidlib:compileReleaseShaders
    106. > Task :GoogleMobileAdsPlugin.androidlib:generateReleaseAssets
    107. > Task :GoogleMobileAdsPlugin.androidlib:packageReleaseAssets
    108. > Task :unity-android-resources:mergeReleaseShaders
    109. > Task :unity-android-resources:compileReleaseShaders
    110. > Task :unity-android-resources:generateReleaseAssets
    111. > Task :unity-android-resources:packageReleaseAssets
    112. > Task :mergeReleaseAssets
    113. > Task :validateSigningRelease UP-TO-DATE
    114. > Task :signingConfigWriterRelease UP-TO-DATE
    115. > Task :processReleaseJavaRes NO-SOURCE
    116. > Task :GoogleMobileAdsAppLovinMediation:processReleaseJavaRes NO-SOURCE
    117. > Task :GoogleMobileAdsAppLovinMediation:bundleLibResRelease
    118. > Task :GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE
    119. > Task :GoogleMobileAdsPlugin.androidlib:bundleLibResRelease
    120. > Task :unity-android-resources:processReleaseJavaRes NO-SOURCE
    121. > Task :unity-android-resources:bundleLibResRelease
    122. > Task :transformResourcesWithMergeJavaResForRelease UP-TO-DATE
    123. > Task :GoogleMobileAdsAppLovinMediation:bundleLibRuntimeRelease
    124. > Task :GoogleMobileAdsAppLovinMediation:mergeReleaseConsumerProguardFiles UP-TO-DATE
    125. > Task :GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeRelease
    126. > Task :GoogleMobileAdsPlugin.androidlib:mergeReleaseConsumerProguardFiles UP-TO-DATE
    127. > Task :unity-android-resources:bundleLibRuntimeRelease
    128. > Task :unity-android-resources:mergeReleaseConsumerProguardFiles UP-TO-DATE
    129.  
    130. > Task :transformClassesAndResourcesWithR8ForRelease FAILED
    131. R8 is the new Android code shrinker. If you experience any issues, please file a bug at
    132. https://issuetracker.google.com, using 'Shrinker (R8)' as component name. You can
    133. disable R8 by updating gradle.properties with 'android.enableR8=false'.
    134. Current version is: 1.4.77 (build b74371231cb896b02f83285efb055b7c00ff64d8 from go/r8bot (luci-r8-ci-archive-0-eqqf)).
    135.  
    136.  
    137. Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
    138. Use '--warning-mode all' to show the individual deprecation warnings.
    139. See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
    140. 72 actionable tasks: 50 executed, 22 up-to-date
    141. ]
    142. exit code: 1
    143. UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
    144. UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
    145. UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1 progress, System.String error)
    146. UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
    147. Rethrow as GradleInvokationException: Gradle build failed
    148. UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
    149. UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    150. UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    151. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    152.  


    Deleting the space before the first * and it works for me.
    Code (CSharp):
    1. -keep class com.android.billingclient.[COLOR=#ff4d4d]*[/COLOR]* { *; }




    Thanks!
     
    Raghavendra and JeffDUnity3D like this.
  9. Raghavendra

    Raghavendra

    Joined:
    Mar 14, 2014
    Posts:
    52
    My bad. I have removed the extra space from my reply.
     
  10. LuckyStarr

    LuckyStarr

    Joined:
    Feb 6, 2018
    Posts:
    17
    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((
     
  11. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Why is the solution mentioned here not working for you? Version 2.2.2 should be available next week.
     
    LuckyStarr likes this.
  12. Ozzy

    Ozzy

    Joined:
    Apr 3, 2013
    Posts:
    3
    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
     
  13. LuckyStarr

    LuckyStarr

    Joined:
    Feb 6, 2018
    Posts:
    17
    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
     
    Last edited: Nov 23, 2020
  14. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please elaborate, what do you mean by two arguments? Please show your code and a screenshot.
     
  15. ajeets1978

    ajeets1978

    Joined:
    Mar 10, 2019
    Posts:
    25
    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
     
  16. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    @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://forum.unity.com/threads/sample-iap-project.529555/
     
  17. iffidevelopment

    iffidevelopment

    Joined:
    Aug 28, 2017
    Posts:
    6
    In my case there were two BillingMode file in my project, so i delete one and problem solved...