Search Unity

Building app stuck on Build Player

Discussion in 'Android' started by Loki18000, Apr 7, 2022.

  1. Loki18000

    Loki18000

    Joined:
    Apr 1, 2015
    Posts:
    75
    Hello,

    I'm building my app to aab for testing and it's stuck on Build Player. I've done a few things but it didn't work. A few threads I could find spoke about Lighting settings causing the issue but disabling Auto Generate Lighting hasn't worked.

    I have Google Play Services installed as well as Unity Ad support. I have done this before without any issue.

    There is no errors in the console and no indication that something is wrong.
    Thank you.
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
    Could you attach Editor.log.

    A longshot but some people were reporting that BitDefender was interfering with il2cpp, maybe you have BitDefender?
     
  3. Loki18000

    Loki18000

    Joined:
    Apr 1, 2015
    Posts:
    75
    Thank you for getting back so soon. I'm not using BitDefender or any Anti Virus software.
    Shall I just copy and paste the entire log in?
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please use the Upload a File button.
     
  5. Loki18000

    Loki18000

    Joined:
    Apr 1, 2015
    Posts:
    75
    Oh yes, sorry. Didn't see that.
     

    Attached Files:

  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
    The log doesn't contain entries that you've started the build. Try copying the Editor.log when the build is stuck. Since if you reopen the Unity, the log gets reset.
     
  7. Loki18000

    Loki18000

    Joined:
    Apr 1, 2015
    Posts:
    75
    Ahh, okay. Sorry I haven't had to use the log yet.
     
  8. Loki18000

    Loki18000

    Joined:
    Apr 1, 2015
    Posts:
    75
    I got this log when it was stuck. Hopefully this is correct.
     

    Attached Files:

  9. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
    It says

    Code (CSharp):
    1. UnityException: Can not sign the application
    2. Unable to sign the application; please provide passwords!
    and the build then fails
     
  10. virgilcwyile

    virgilcwyile

    Joined:
    Jan 31, 2016
    Posts:
    73
    Hi I am having same issue. here is my log.
     

    Attached Files:

  11. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
    There's no build error in your log
     
  12. virgilcwyile

    virgilcwyile

    Joined:
    Jan 31, 2016
    Posts:
    73
    Yes I tried looking. What could be the issue? This project has been updated from 2017 to 2021 LTS.
     
  13. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
    What issue are you exactly having, since log doesn't contain errors?
     
  14. virgilcwyile

    virgilcwyile

    Joined:
    Jan 31, 2016
    Posts:
    73
    It's the same as title. I start the build and it get's stuck on Build Player.Also I can't create another bug report on Atlassian as my 1 bug report is already in review for weeks and haven't heard anything from anyone over there.
    let me know what to send you so you would know more about issue.
     
  15. virgilcwyile

    virgilcwyile

    Joined:
    Jan 31, 2016
    Posts:
    73
    For some reason it started working now, and now the build is giving me this error.
     

    Attached Files:

  16. virgilcwyile

    virgilcwyile

    Joined:
    Jan 31, 2016
    Posts:
    73
    Here is the screenshot.
     

    Attached Files:

  17. virgilcwyile

    virgilcwyile

    Joined:
    Jan 31, 2016
    Posts:
    73
    When I copied the project from External SSD to system SSD, It started building. So it was a file writing error. I wished all would have just worked because I was working fine in the editor, didn't get any write error there.
     
  18. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,919
    I know people used external SSD successfully in the past, I am not sure why it's failing for you, maybe there are errors on the disk.

    Alternatively you could try submitting a bug to Unity https://unity3d.com/unity/qa/bug-reporting
     
  19. dev_uneeb

    dev_uneeb

    Joined:
    Jul 29, 2017
    Posts:
    1
    I am having this issue, does anyone have a solution?
     
  20. xagarth

    xagarth

    Joined:
    Sep 7, 2016
    Posts:
    17
    Check if you have JAVA_HOME set and java binary is in your PATH
     
  21. gargshaurya1017

    gargshaurya1017

    Joined:
    Apr 23, 2023
    Posts:
    1
    i am also having the same issue can anyone help it