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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Unity 2017.4.1f1 Facebook SDK 7.11.1 Gradle build failed.

Discussion in 'Android' started by Pampam64, Apr 25, 2018.

  1. Pampam64

    Pampam64

    Joined:
    Jan 19, 2014
    Posts:
    3
    Hi, For last few days I'm tring to build facebook sdk with its sample scenes for android platform. I'm using Unity 2017.4.1f1 and my java version is 1.8.0_161.
    I downloaded facebook sdk from official page https://developers.facebook.com/docs/unity then I follow all steps for the configuration and in unity the project itself works but when I try to build android apk no matter gradle or internal i'm getting an error.

    Gradle error:
    Code (CSharp):
    1. CommandInvokationFailure: Gradle build failed.
    2. C:/Program Files/Java/jdk1.8.0_161\bin\java.exe -classpath "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease"
    3.  
    4. stderr[
    5. C:\Users\Pawel\Documents\Unity3D\FacebookTest\Temp\gradleOut\build\intermediates\res\merged\release\values\values.xml:160: AAPT: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.NoActionBar'.
    6.  
    7. C:\Users\Pawel\Documents\Unity3D\FacebookTest\Temp\gradleOut\build\intermediates\res\merged\release\values\values.xml:165: AAPT: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Dialog'.
    8.  
    9. C:\Users\Pawel\Documents\Unity3D\FacebookTest\Temp\gradleOut\build\intermediates\res\merged\release\values\values.xml:160: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.NoActionBar'.
    10.  
    11. C:\Users\Pawel\Documents\Unity3D\FacebookTest\Temp\gradleOut\build\intermediates\res\merged\release\values\values.xml:165: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Dialog'.
    12.  
    13. FAILURE: Build failed with an exception.
    14.  
    15. * What went wrong:
    16. Execution failed for task ':processReleaseResources'.
    17. > com.android.ide.common.process.ProcessException: Failed to execute aapt
    18.  
    19. * Try:
    20. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    21.  
    22. BUILD FAILED in 20s
    23. ]
    24. stdout[
    25. Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
    26. The setTestClassesDir(File) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the setTestClassesDirs(FileCollection) method instead.
    27. The getTestClassesDir() method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the getTestClassesDirs() method instead.
    28. The ConfigurableReport.setDestination(Object) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the method ConfigurableReport.setDestination(File) instead.
    29. :preBuild UP-TO-DATE
    30. :preReleaseBuild UP-TO-DATE
    31. :checkReleaseManifest
    32. :preDebugBuild UP-TO-DATE
    33. :prepareFacebookAndroidWrapper7111Library
    34. :prepareFacebookApplinksLibrary
    35. :prepareFacebookCommonLibrary
    36. :prepareFacebookCoreLibrary
    37. :prepareFacebookLoginLibrary
    38. :prepareFacebookMessengerLibrary
    39. :prepareFacebookPlacesLibrary
    40. :prepareFacebookShareLibrary
    41. :prepareReleaseDependencies
    42. :compileReleaseAidl
    43. :compileReleaseRenderscript
    44. :generateReleaseBuildConfig
    45. :generateReleaseResValues
    46. :generateReleaseResources
    47. :mergeReleaseResources
    48. :processReleaseManifest
    49. :processReleaseResources FAILED
    50. 17 actionable tasks: 17 executed
    51. ]
    52. exit code: 1
    53. UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
    54. UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
    55. UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1 progress, System.String error)
    56. UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
    57. Rethrow as GradleInvokationException: Gradle build failed
    58. UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
    59. UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    60. UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    61. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    Any idea what could be a problem? I went through few solutions but nothing works in my case.
     
  2. MorenoBralts

    MorenoBralts

    Joined:
    May 23, 2017
    Posts:
    19
    Can you post your Gradle build file?
     
  3. Pampam64

    Pampam64

    Joined:
    Jan 19, 2014
    Posts:
    3
    Hi, I know there is a dependency
    Code (CSharp):
    1. dependencies {
    2.         classpath 'com.android.tools.build:gradle:2.3.0'
    3.     }
    Two days ago I changed it to 4.0.1 but it didn't help
    Also android sdk downgrade from 27 (android 8.1) to 25 (android 7.1.1) did not help.

    Just want to add I have three other project I build from scratch and I can build android apk with no issues. The problem is only with facebook sdk 7.11.1. I was hoping I can add fb easily to my projects but it seems not as straightforward. I'm going to try with older versions maybe version I tried has some issues.

    I've uploaded gradle file just added extension (.txt) it didn't let me to upload with original file name.
     

    Attached Files:

    Last edited: Apr 26, 2018
  4. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,165
    Looks like you are missing appcompat library.
    BTW there's no 4.0.1 android gradle plugin available (yet).
     
  5. alan_motionlab

    alan_motionlab

    Joined:
    Nov 27, 2014
    Posts:
    99
    I had a similar problem - try removing this:

    Code (csharp):
    1. aaptOptions {
    2.         noCompress '.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**
    3.     }
    This stopped things working for me for a while. Its now all working again after removing these lines from the build gradle

    I have no idea what it actually does - I'm not an Android dev and only just getting to basic grips with Gradle.
     
  6. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,165
    NO PLEASE NEVER DO THAT!
     
  7. alan_motionlab

    alan_motionlab

    Joined:
    Nov 27, 2014
    Posts:
    99
    I have no other way of making a build work without removing this block. I've tried all sorts (even had a ticket open with support who couldn't find a solution) and nothing worked. The only way I spotted this is when I rolled back my mainTemplate.gradle to when I was building our game through 2017.2 and changed the Gradle version number from 2.1 to 2.3 and then it worked.
     
  8. Pampam64

    Pampam64

    Joined:
    Jan 19, 2014
    Posts:
    3
    Looks like I have appcompat-v7 I did another test proj. with fb sdk 7.11.0 and no problems everything builds as it should. Problem is with a recent one 7.11.1
     
  9. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,165
    Once again:

    PLEASE NEVER DO THAT!

    It will lead to some parts of the game load 10x slower.
    I'm sure there is a way to have a proper fix.
     
  10. Amirraza

    Amirraza

    Joined:
    Jul 13, 2018
    Posts:
    17
    @Yury-Habets When i only integrating facebook sdk 7.13.0 unity 2018.1.1.f1 i am not getting any error but when am using admob plugin mediation(and taking ads from adcolny tapjoy ) and integrating facebook am getting error
    the error is listed below


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

    stderr[
    \\?\E:\projects\UnityProjects\Awain3\Temp\gradleOut\build\intermediates\manifests\full\release\AndroidManifest.xml:85: AAPT: Tag <provider> attribute authorities has invalid character ' '.

    \\?\E:\projects\UnityProjects\Awain3\Temp\gradleOut\build\intermediates\manifests\full\release\AndroidManifest.xml:85: Tag <provider> attribute authorities has invalid character ' '.


    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':processReleaseResources'.
    > com.android.ide.common.process.ProcessException: Failed to execute aapt

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

    BUILD FAILED in 1m 2s
    ]
    stdout[
    Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details
    NDK is missing a "platforms" directory.
    If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Program Files (x86)\Android\android-sdk\ndk-bundle.
    If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\add-ons\addon-google_apis-google-24\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.3\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\build-tools\28.0.0\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\build-tools\28.0.0-rc2\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\build-tools\28.0.1\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\extras\google\usb_driver\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\extras\google\webdriver\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\platforms\android-24\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\platforms\android-25\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\platforms\android-27\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-19\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-21\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-22\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-23\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-24\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-25\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-26\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-27\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\add-ons\addon-google_apis-google-24\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.3\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\build-tools\28.0.0\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\build-tools\28.0.0-rc2\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\build-tools\28.0.1\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\extras\google\usb_driver\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\extras\google\webdriver\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\platforms\android-24\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\platforms\android-25\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\platforms\android-27\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-19\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-21\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-22\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-23\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-24\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-25\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-26\package.xml. Probably the SDK is read-only
    Exception while marshalling C:\Program Files (x86)\Android\android-sdk\sources\android-27\package.xml. Probably the SDK is read-only
    NDK is missing a "platforms" directory.
    If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Program Files (x86)\Android\android-sdk\ndk-bundle.
    If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

    The setTestClassesDir(File) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the setTestClassesDirs(FileCollection) method instead.
    The getTestClassesDir() method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the getTestClassesDirs() method instead.
    The ConfigurableReport.setDestination(Object) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the method ConfigurableReport.setDestination(File) instead.
    NDK is missing a "platforms" directory.
    If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Program Files (x86)\Android\android-sdk\ndk-bundle.
    If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

    NDK is missing a "platforms" directory.
    If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Program Files (x86)\Android\android-sdk\ndk-bundle.
    If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

    :preBuild UP-TO-DATE
    :preReleaseBuild UP-TO-DATE
    :checkReleaseManifest
    :preDebugBuild UP-TO-DATE
    :prepareAndroidArchLifecycleRuntime100Library
    :prepareComAdcolonySdk334UnityLibrary
    :prepareComAndroidSupportAnimatedVectorDrawable2610Library
    :prepareComAndroidSupportAppcompatV72610Library
    :prepareComAndroidSupportCardviewV72610Library
    :prepareComAndroidSupportCustomtabs2610Library
    :prepareComAndroidSupportSupportCompat2610Library
    :prepareComAndroidSupportSupportCoreUi2610Library
    :prepareComAndroidSupportSupportCoreUtils2610Library
    :prepareComAndroidSupportSupportFragment2610Library
    :prepareComAndroidSupportSupportMediaCompat2610Library
    :prepareComAndroidSupportSupportV42610Library
    :prepareComAndroidSupportSupportVectorDrawable2610Library
    :prepareComGoogleAdsMediationAdcolony3340Library
    :prepareComGoogleAdsMediationTapjoy12001Library
    :prepareComGoogleAndroidGmsPlayServicesAds1700Library
    :prepareComGoogleAndroidGmsPlayServicesAdsBase1700Library
    :prepareComGoogleAndroidGmsPlayServicesAdsIdentifier1600Library
    :prepareComGoogleAndroidGmsPlayServicesAdsLite1700Library
    :prepareComGoogleAndroidGmsPlayServicesBasement1610Library
    :prepareComGoogleAndroidGmsPlayServicesGass1700Library
    :prepareComGoogleAndroidGmsPlayServicesMeasurementBase1603Library
    :prepareComGoogleAndroidGmsPlayServicesMeasurementSdkApi1602Library
    :prepareComTapjoyTapjoyAndroidSdk1210Library
    :prepareFacebookAndroidWrapper7121Library
    :prepareFacebookApplinksLibrary
    :prepareFacebookCommonLibrary
    :prepareFacebookCoreLibrary
    :prepareFacebookLoginLibrary
    :prepareFacebookMessengerLibrary
    :prepareFacebookPlacesLibrary
    :prepareFacebookShareLibrary
    :GoogleMobileAdsAdColonyMediation:preBuild UP-TO-DATE
    :GoogleMobileAdsAdColonyMediation:preReleaseBuild UP-TO-DATE
    :GoogleMobileAdsAdColonyMediation:checkReleaseManifest
    :GoogleMobileAdsAdColonyMediation:prepareReleaseDependencies
    :GoogleMobileAdsAdColonyMediation:compileReleaseAidl
    :GoogleMobileAdsAdColonyMediation:compileReleaseNdk NO-SOURCE
    :GoogleMobileAdsAdColonyMediation:compileLint
    :GoogleMobileAdsAdColonyMediation:copyReleaseLint NO-SOURCE
    :GoogleMobileAdsAdColonyMediation:mergeReleaseShaders
    :GoogleMobileAdsAdColonyMediation:compileReleaseShaders
    :GoogleMobileAdsAdColonyMediation:generateReleaseAssets
    :GoogleMobileAdsAdColonyMediation:mergeReleaseAssets
    :GoogleMobileAdsAdColonyMediation:mergeReleaseProguardFiles UP-TO-DATE
    :GoogleMobileAdsAdColonyMediation:packageReleaseRenderscript NO-SOURCE
    :GoogleMobileAdsAdColonyMediation:compileReleaseRenderscript
    :GoogleMobileAdsAdColonyMediation:generateReleaseResValues
    :GoogleMobileAdsAdColonyMediation:generateReleaseResources
    :GoogleMobileAdsAdColonyMediation:packageReleaseResources
    :GoogleMobileAdsAdColonyMediation:processReleaseManifest
    :GoogleMobileAdsAdColonyMediation:generateReleaseBuildConfig
    :GoogleMobileAdsAdColonyMediation:processReleaseResources
    :GoogleMobileAdsAdColonyMediation:generateReleaseSources
    :GoogleMobileAdsAdColonyMediation:incrementalReleaseJavaCompilationSafeguard
    :GoogleMobileAdsAdColonyMediation:javaPreCompileRelease
    :GoogleMobileAdsAdColonyMediation:compileReleaseJavaWithJavac
    :GoogleMobileAdsAdColonyMediation:processReleaseJavaRes NO-SOURCE
    :GoogleMobileAdsAdColonyMediation:transformResourcesWithMergeJavaResForRelease
    :GoogleMobileAdsAdColonyMediation:transformClassesAndResourcesWithSyncLibJarsForRelease
    :GoogleMobileAdsAdColonyMediation:mergeReleaseJniLibFolders
    :GoogleMobileAdsAdColonyMediation:transformNativeLibsWithMergeJniLibsForRelease
    :GoogleMobileAdsAdColonyMediation:transformNativeLibsWithSyncJniLibsForRelease
    :GoogleMobileAdsAdColonyMediation:bundleRelease
    :GoogleMobileAdsPlugin:preBuild UP-TO-DATE
    :GoogleMobileAdsPlugin:preReleaseBuild UP-TO-DATE
    :GoogleMobileAdsPlugin:checkReleaseManifest
    :GoogleMobileAdsPlugin:prepareReleaseDependencies
    :GoogleMobileAdsPlugin:compileReleaseAidl
    :GoogleMobileAdsPlugin:compileReleaseNdk NO-SOURCE
    :GoogleMobileAdsPlugin:compileLint
    :GoogleMobileAdsPlugin:copyReleaseLint NO-SOURCE
    :GoogleMobileAdsPlugin:mergeReleaseShaders
    :GoogleMobileAdsPlugin:compileReleaseShaders
    :GoogleMobileAdsPlugin:generateReleaseAssets
    :GoogleMobileAdsPlugin:mergeReleaseAssets
    :GoogleMobileAdsPlugin:mergeReleaseProguardFiles UP-TO-DATE
    :GoogleMobileAdsPlugin:packageReleaseRenderscript NO-SOURCE
    :GoogleMobileAdsPlugin:compileReleaseRenderscript
    :GoogleMobileAdsPlugin:generateReleaseResValues
    :GoogleMobileAdsPlugin:generateReleaseResources
    :GoogleMobileAdsPlugin:packageReleaseResources
    :GoogleMobileAdsPlugin:processReleaseManifest
    :GoogleMobileAdsPlugin:generateReleaseBuildConfig
    :GoogleMobileAdsPlugin:processReleaseResources
    :GoogleMobileAdsPlugin:generateReleaseSources
    :GoogleMobileAdsPlugin:incrementalReleaseJavaCompilationSafeguard
    :GoogleMobileAdsPlugin:javaPreCompileRelease
    :GoogleMobileAdsPlugin:compileReleaseJavaWithJavac
    :GoogleMobileAdsPlugin:processReleaseJavaRes NO-SOURCE
    :GoogleMobileAdsPlugin:transformResourcesWithMergeJavaResForRelease
    :GoogleMobileAdsPlugin:transformClassesAndResourcesWithSyncLibJarsForRelease
    :GoogleMobileAdsPlugin:mergeReleaseJniLibFolders
    :GoogleMobileAdsPlugin:transformNativeLibsWithMergeJniLibsForRelease
    :GoogleMobileAdsPlugin:transformNativeLibsWithSyncJniLibsForRelease
    :GoogleMobileAdsPlugin:bundleRelease
    :GoogleMobileAdsTapjoyMediation:preBuild UP-TO-DATE
    :GoogleMobileAdsTapjoyMediation:preReleaseBuild UP-TO-DATE
    :GoogleMobileAdsTapjoyMediation:checkReleaseManifest
    :GoogleMobileAdsTapjoyMediation:prepareReleaseDependencies
    :GoogleMobileAdsTapjoyMediation:compileReleaseAidl
    :GoogleMobileAdsTapjoyMediation:compileReleaseNdk NO-SOURCE
    :GoogleMobileAdsTapjoyMediation:compileLint
    :GoogleMobileAdsTapjoyMediation:copyReleaseLint NO-SOURCE
    :GoogleMobileAdsTapjoyMediation:mergeReleaseShaders
    :GoogleMobileAdsTapjoyMediation:compileReleaseShaders
    :GoogleMobileAdsTapjoyMediation:generateReleaseAssets
    :GoogleMobileAdsTapjoyMediation:mergeReleaseAssets
    :GoogleMobileAdsTapjoyMediation:mergeReleaseProguardFiles UP-TO-DATE
    :GoogleMobileAdsTapjoyMediation:packageReleaseRenderscript NO-SOURCE
    :GoogleMobileAdsTapjoyMediation:compileReleaseRenderscript
    :GoogleMobileAdsTapjoyMediation:generateReleaseResValues
    :GoogleMobileAdsTapjoyMediation:generateReleaseResources
    :GoogleMobileAdsTapjoyMediation:packageReleaseResources
    :GoogleMobileAdsTapjoyMediation:processReleaseManifest
    :GoogleMobileAdsTapjoyMediation:generateReleaseBuildConfig
    :GoogleMobileAdsTapjoyMediation:processReleaseResources
    :GoogleMobileAdsTapjoyMediation:generateReleaseSources
    :GoogleMobileAdsTapjoyMediation:incrementalReleaseJavaCompilationSafeguard
    :GoogleMobileAdsTapjoyMediation:javaPreCompileRelease
    :GoogleMobileAdsTapjoyMediation:compileReleaseJavaWithJavac
    :GoogleMobileAdsTapjoyMediation:processReleaseJavaRes NO-SOURCE
    :GoogleMobileAdsTapjoyMediation:transformResourcesWithMergeJavaResForRelease
    :GoogleMobileAdsTapjoyMediation:transformClassesAndResourcesWithSyncLibJarsForRelease
    :GoogleMobileAdsTapjoyMediation:mergeReleaseJniLibFolders
    :GoogleMobileAdsTapjoyMediation:transformNativeLibsWithMergeJniLibsForRelease
    :GoogleMobileAdsTapjoyMediation:transformNativeLibsWithSyncJniLibsForRelease
    :GoogleMobileAdsTapjoyMediation:bundleRelease
    :prepareReleaseDependencies
    :compileReleaseAidl UP-TO-DATE
    :compileReleaseRenderscript UP-TO-DATE
    :generateReleaseBuildConfig UP-TO-DATE
    :generateReleaseResValues UP-TO-DATE
    :generateReleaseResources UP-TO-DATE
    :mergeReleaseResources UP-TO-DATE
    :processReleaseManifest
    :processReleaseResources FAILED
    110 actionable tasks: 102 executed, 8 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)
     
  11. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,165
    @Amirraza logs suggest you have an error with the manifest.

    Try looking into
    E:\projects\UnityProjects\Awain3\Temp\gradleOut\build\intermediates\manifests\full\release\AndroidManifest.xml:line85

    and find something suspicious.
     
  12. Amirraza

    Amirraza

    Joined:
    Jul 13, 2018
    Posts:
    17
    @Yury-Habets Thanks I managed to some how solved it..
    but one thing I have admob mediation in which am taking video ads from(adcolony tapjoy and vungle) when i integrate some of those plugin i dont get any error but application crush when i open there are some notification in console which am mentioning ..

    Caching AAR Assets/Plugins/Android/android.arch.lifecycle.common-1.0.0.jar state
    UnityEngine.Debug:Log(Object)
    Google.Logger:Log(String, LogLevel)
    GooglePlayServices.PlayServicesResolver:Log(String, LogLevel)
    GooglePlayServices.ResolverVer1_1:LoadAarExplodeCache()
    GooglePlayServices.ResolverVer1_1:.ctor()
    GooglePlayServices.PlayServicesResolver:.cctor()
    UnityEditor.EditorAssemblies:processInitializeOnLoadAttributes()

    these are some .AAR AND meta files am not able to figuring out whats going wrong??
     

    Attached Files:

  13. devanshp915

    devanshp915

    Joined:
    Jan 15, 2019
    Posts:
    5
    How did you solve it? I'm still facing it. Please help, it's been 5 days I can't export my project due to this. THANKS..!
     
  14. Flicker_

    Flicker_

    Joined:
    Sep 29, 2015
    Posts:
    6
    I have a potential solution, but my error log was much clearer upon further inspection.

    The default Android package in my Unity (2019.3.0a12) contains redundant classes to the Facebook SDK (7.17.2). Unity will replace any deleted Android packages with the manifest.xml so you have to remove the duplicate classes from the FB SDK.

    In Unity I deleted the entire directory at Assets/FacebookSDK/Plugins/Android/lib and my build succeeded.