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. Dismiss Notice

1 exception was raised by workers

Discussion in 'Editor & General Support' started by cihannakgul, Oct 28, 2019.

  1. cihannakgul

    cihannakgul

    Joined:
    Oct 24, 2019
    Posts:
    15
    Please help me, i can't build my app. (I'm not using unity ads. only admob.)

    FAILURE: Build failed with an exception.

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
    * What went wrong:

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
    Execution failed for task ':checkReleaseDuplicateClasses'.

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

    java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class com.google.unity.BuildConfig found in modules classes.jar :)googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

    Duplicate class com.google.unity.ads.AdNetworkExtras found in modules classes.jar :)googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

    Duplicate class com.google.unity.ads.Banner found in modules classes.jar :)googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
     
  2. cihannakgul

    cihannakgul

    Joined:
    Oct 24, 2019
    Posts:
    15
    Code (CSharp):
    1. FAILURE: Build failed with an exception.
    2.  
    3. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
    4.  
    5. * What went wrong:
    6.  
    7. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
    8.  
    9. Execution failed for task ':checkReleaseDuplicateClasses'.
    10.  
    11. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
    12.  
    13. > 1 exception was raised by workers:
    14.  
    15. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
    16.  
    17.   java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class com.google.unity.BuildConfig found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
    18.  
    19. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
    20.  
    21.   Duplicate class com.google.unity.ads.AdNetworkExtras found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
    22.  
    23. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
    24.  
    25.   Duplicate class com.google.unity.ads.Banner found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
    26.  
    27. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
    28.  
    29.   Duplicate class com.google.unity.ads.CustomNativeAd found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
    30.  
    31. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
    32.  
    33.   Duplicate class com.google.unity.ads.Interstitial$1$1$2 found in modules classes.jar (:googlemobileads-unity:) and unity-plugin-library.jar (unity-plugin-library.jar)
    34.  
    35. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
     
  3. cihannakgul

    cihannakgul

    Joined:
    Oct 24, 2019
    Posts:
    15
  4. EyeDev44

    EyeDev44

    Joined:
    Apr 8, 2017
    Posts:
    140
  5. thiagolrosa

    thiagolrosa

    Joined:
    Feb 22, 2017
    Posts:
    57
    Same here
     
  6. MirkoSon

    MirkoSon

    Joined:
    Oct 14, 2015
    Posts:
    24
    We had a similar issue in our studio. This is what solved the issue for us:
    1. Go to Assets > Play Services Resolver > Android Resolver > Settings
    2. Uncheck “Enable auto-resolution” and “Install android packages”
    3. Press OK. Your android plugins should now be deleted.
    4. Now head to Assets > Play Services Resolver > Android Resolver > Resolve
    5. After the action is complete, delete all of the files starting with “com.android.support” from Plugins/Android/
    6. Done.
    I hope this helps someone!
     
    Gokul46585, LuksProject, ODU and 3 others like this.
  7. ODU

    ODU

    Joined:
    Oct 25, 2014
    Posts:
    4
    thanks it help me a lot !
     
  8. macsaberos

    macsaberos

    Joined:
    May 6, 2020
    Posts:
    1
    I had a similar problem. For me, the Keystore password or Key password was incorrect.
     
  9. jemca

    jemca

    Joined:
    May 7, 2019
    Posts:
    5
    It's a bit frustrating not seeing a login error. First thing is to make sure the credentials are ok.
     
  10. Gokul46585

    Gokul46585

    Joined:
    Sep 9, 2022
    Posts:
    6
    I have added admob sdk in unity and cannot build as it throws error, gradle build failed with different errors. this solves my issue.