Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity 2020: Cannot build for Android

Discussion in 'Linux' started by Wulfara, Aug 6, 2020.

  1. Wulfara

    Wulfara

    Joined:
    Aug 11, 2015
    Posts:
    40
    It just gets stuck at "Checking prerequisites - Starting Android Build" forever without showing any error.
    It happens in any 2020 version I have tried so far, 2020.1.1f1 being the last one.
    It happens even in new empty projects.
    I can build for Android without any problem in Unity 2019 versions.
    Thank you.
     
    chillandcodegames likes this.
  2. Omnindian

    Omnindian

    Joined:
    Jun 1, 2020
    Posts:
    7
    Agreed. 2020 1.1f froze while trying to build android project for me as well. I had to remake the project in 2019 4.7 to build it successfully.
    I believe I got some error about sdk not found for current project (2020) but I checked the installs and found the openjdk was already installed. I deselected the default sdk and jdk (checkboxes in external tools in preferences) and rechecked them and restarted the 2020 project. It did not complain about missing sdk after that but trying to build an adroid project froze and could not be canceled even up to 30 minutes or more later.
    Sorry I cannot replicate the error report window again.
     
    Wulfara likes this.
  3. sfjohansson

    sfjohansson

    Joined:
    Mar 12, 2013
    Posts:
    369
    I'm using 2020.1.0f1 and it works fine, running ubuntu 18.04
     
    Wulfara likes this.
  4. Wulfara

    Wulfara

    Joined:
    Aug 11, 2015
    Posts:
    40
    It started working again for me with the 2020.1.2f1 update :)
     
    KevinWelton likes this.
  5. KevinWelton

    KevinWelton

    Joined:
    Jul 26, 2018
    Posts:
    239
    I tried reproducing this locally and wasn't able to, so I'm glad the newer build workout out for you!
     
    Wulfara likes this.
  6. Melnikovv

    Melnikovv

    Joined:
    Oct 21, 2016
    Posts:
    8
    This is because of the bad internet connection. Unity is probably checking for an SDK update and can't reach the server.
    In my case I accidentally enabled double VPN which does not let the internet to pass through. I disabled my VPN and even without restarting - unity built the project.

    So check your internet connection.
     
    roointan likes this.