Search Unity

  1. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  2. Dismiss Notice

a failure occurred while executing com.android.build.gradle.internal.tasks.workers$actionfacade

Discussion in 'Android' started by EbkLordx, Aug 25, 2020.

  1. EbkLordx

    EbkLordx

    Joined:
    Aug 20, 2020
    Posts:
    5
    I am trying to get my game as APK but when I try to build APK I am getting this error : a failure occurred while executing com.android.build.gradle.internal.tasks.workers$actionfacade see the console for details.
     
    ReeseEifler likes this.
  2. Arman132

    Arman132

    Joined:
    Jul 1, 2020
    Posts:
    2
    the same error
     
    ReeseEifler likes this.
  3. ReeseEifler

    ReeseEifler

    Joined:
    Oct 3, 2014
    Posts:
    5
    Also getting this error -- seems to be the result of having mistyped my key password -- oops -- build succeeded
     
    Last edited: Aug 26, 2020
  4. EbkLordx

    EbkLordx

    Joined:
    Aug 20, 2020
    Posts:
    5
    I did everything okey but when I try build I getting this error
     
  5. piggie_pie

    piggie_pie

    Joined:
    May 18, 2015
    Posts:
    4
    I'm also getting this error. I have built the project dozens of times and have never gotten this error. I only just now got it and I can't seem to figure out a way around it.
     
  6. EbkLordx

    EbkLordx

    Joined:
    Aug 20, 2020
    Posts:
    5
    Is there any solution ?
     
  7. rayanhakem54

    rayanhakem54

    Joined:
    Sep 19, 2020
    Posts:
    1
    I solved it by making a folder in the C drive and build it from there

    upload_2020-9-19_19-46-22.png
     
    MINECANGI likes this.
  8. Kay_dee007

    Kay_dee007

    Joined:
    May 13, 2018
    Posts:
    4
    Confirm that it's not your key i was having this same issue and i could have sworn i typed my key password correctly but after reading the posts here i went back read some of the error messages again and found it said things about my key so i retype it carefully and my app built successfully my point is retype your key and try building again
     
    Jeme_Jam likes this.
  9. unity_wRbNsLt2-lofmA

    unity_wRbNsLt2-lofmA

    Joined:
    Aug 18, 2020
    Posts:
    2
    Thanks a lot man. Really helped me. I just created a new key and assigned it in player setting.
     
  10. EbkLordx

    EbkLordx

    Joined:
    Aug 20, 2020
    Posts:
    5
    I am absolutely sure i wrote my key correct
     
  11. EbkLordx

    EbkLordx

    Joined:
    Aug 20, 2020
    Posts:
    5
    Okey problem solved thanks.
     
  12. vishalcruze29

    vishalcruze29

    Joined:
    Sep 10, 2020
    Posts:
    2
    Was it the Key ?
     
  13. shrirammoni_unity

    shrirammoni_unity

    Joined:
    Oct 2, 2018
    Posts:
    2
    Facing the same error? Any workaround?
     
  14. shrirammoni_unity

    shrirammoni_unity

    Joined:
    Oct 2, 2018
    Posts:
    2
    I solved the problem by doing the following steps.
    1. Closed & Re-opened the project
    2. Entered the Keystore password before taking build
    and everything worked.
     
  15. Hecolo

    Hecolo

    Joined:
    Mar 5, 2016
    Posts:
    48
    I confirm it was a Keystore issue from password... weird.
    So I was lazy, and as I didnt upload the game to the store, i created a new keystore and set it as the main keystore, everything worked...

    Edit : Nop doing the same S*** again

    Edit : It's working by restard Unity everytime you get this issue
     
    Last edited: Nov 12, 2020
  16. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    625
    Which Unity version do you use? Is this reproducible with the new empty project (when trying to sign it with a custom keystore)? Is this the only error? Is there any additional information in the error message?
    You could try to clear gradle cache which on OSX is at $HOME/.gradle/caches and on Windows is at %HOMEPATH%\.gradle\caches but this is just a guess. More information is needed to know what is causing this.
     
  17. Hecolo

    Hecolo

    Joined:
    Mar 5, 2016
    Posts:
    48

    Sorry Yes it's working. But doing the same stuff randomnly. Was an issue with my Android Manifest too.
    So I deleted this android manifest imported by Facebook sdk. And By closing and reopen unity it fix.
    So everytime I get this issue I close Unity and reopen it, and it work.

    Unity version 2020.1.1.2f1

    Thank you :)
     
    akshaysharmabilaspur likes this.
  18. Gamest34

    Gamest34

    Joined:
    Jan 24, 2017
    Posts:
    4
    I get this error after setup mediation plugins packages

    Then I remove google admob file & plugins in project panel then setup again

    And problem solved
     
  19. Jiry_XD

    Jiry_XD

    Joined:
    Aug 3, 2020
    Posts:
    19
    Having the same problem, how to fix? It works with another keystore, but I need that specific Keystore for the game on google play. The keystore code that I input is 100% correct, i have tried re-entering the password, but no luck. Edit: Problem fixed, my keystore password was incorecct (oops :p)
     
    Last edited: Dec 25, 2020
  20. Missile_

    Missile_

    Joined:
    Feb 9, 2014
    Posts:
    7
    I stumbled on this today. I found that Gradle or whatever program that fired the exception did not like my passwords. I generated my passwords using alphanumerical and special values (*$%+:!...) using Bitwarden. After providing one with no special characters, the build succeeded.
     
  21. txbac98

    txbac98

    Joined:
    Jan 14, 2019
    Posts:
    1
    I had the same problem as you and fixed it. Problem in GoogleMobieAds and Android Plugin
     
    Last edited: Dec 22, 2020
  22. MiracMirza

    MiracMirza

    Joined:
    Jan 9, 2021
    Posts:
    1
    pls help me türküm :(
     
  23. dawoodrayan887

    dawoodrayan887

    Joined:
    Sep 17, 2020
    Posts:
    3
    broo I couldnt solve it
     
  24. dawoodrayan887

    dawoodrayan887

    Joined:
    Sep 17, 2020
    Posts:
    3
    I wrote my password 190 times
    and didnt work
     
  25. Hecolo

    Hecolo

    Joined:
    Mar 5, 2016
    Posts:
    48
    Okey guys so the other solution would be delete all Android stuff in your game to clean it.
     
  26. mrshoot

    mrshoot

    Joined:
    Mar 17, 2017
    Posts:
    3
    What do you mean I am facing the problem and I did not find a solution
     
  27. mack2087

    mack2087

    Joined:
    May 3, 2020
    Posts:
    1
    Facing the same problem. My slowest laptop take 20mins to build and then it gives the error each time. Which is killing me.

    EDIT :- I managed to solve the problem, finally. It took me a whole day. Actually the issue was with my package name. The package name had a word "throw" which was messing with java code. I replaced it with some other word and Voila, my apk got built
     
    Last edited: Mar 23, 2021
  28. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,002
    We noticed this issue many times. Please follow the below steps for resolving it.

    1. Go to External Tool settings from preferences
    2. Toggle checkmarks (Enable and Re-enable) for Android SDK and Java entries
    3. Restart Unity (This makes sure Temp folders are recreated)

    Thanks,
    VB Team
     
    SharStudio likes this.
  29. southwest016

    southwest016

    Joined:
    Mar 28, 2021
    Posts:
    1
    go to publishing settings and make sure both passwords are correct and try again...
     
  30. eelir_g

    eelir_g

    Joined:
    Aug 23, 2019
    Posts:
    6
    Same problem here no solution. I even created a new key altogether and that did not fix it. I am using unity ads and upgraded from 2019 to 2020. This has got to be the most annoying bug/problem I had in my life. It waits for it to build the complete project and in the end it fails for a wrong password (which I am suspecting is not the case for me).

    UPDATE:

    Last night i deleted most of my game file(I have 1.3K) and reduced the number to 500. It worked. The files are in StreamingAssets.

    Today the Native share asset was throwing error and I needed to add some line in custom proguard file. Unity froze. Had to reopen and reinstale Native Share again and the problem is back.

    This all appears random to me, like it decides once every minutes what it does not like, but it will not tell you!
     
    Last edited: Mar 30, 2021
  31. Personuo

    Personuo

    Joined:
    Mar 19, 2014
    Posts:
    72
    I pack each time it takes 20 minutes, this error appears at the end every time, even if you want to find the error by comparison method can not help, I hope there is a fast way to find the error
     
    Ceylan12 likes this.
  32. pranitababar1999

    pranitababar1999

    Joined:
    May 4, 2021
    Posts:
    1
    What was the solution
     
  33. babybluejeff

    babybluejeff

    Joined:
    Feb 12, 2021
    Posts:
    1
    As mentioned in this thread, I closed and re-opened Unity, re-typed my key passwords and that seemed to do the trick. Thanks!
     
  34. MickeyJ_88

    MickeyJ_88

    Joined:
    Nov 21, 2019
    Posts:
    6
    Yep, restarting unity fixed it for me too. I swear, the amount of hours that could be saved if Unity's errors gave a "try restarting first" reminder. So many times! Why do I keep falling for it? :O
     
  35. onur02_tosun

    onur02_tosun

    Joined:
    Jan 27, 2021
    Posts:
    1
    yes this is very strange.
    I created a new password and restarted the Unity program.
    And the problem is solved.
    I think the program's mind is gone. We have to restart and bring it back.
     
  36. Chethan007

    Chethan007

    Joined:
    Dec 3, 2020
    Posts:
    3
    I am getting this error while I am trying to implement the admob ad mediation. I used the inMobi and Unity ads network. Without using these networks the build is successful. But when I integrate these networks, the build fails. AnyBody please help
     
  37. D3m0n

    D3m0n

    Joined:
    Nov 11, 2014
    Posts:
    118
    Same problem on Unity 2020.3.12f1
     
unityunity