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

Build with Gradle in UCB

Discussion in 'Unity Build Automation' started by liortal, Mar 13, 2017.

  1. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    Are there any plans to support exporting an APK using Gradle in UCB? This option is available starting with Unity 5.5.

    IMO this is must, as it is pretty much the only way to resolve the dreaded 64k method references issue on Android.

    We are currently relying on UCB to produce our builds, so it is very important for us to have support for this.

    Also, since all the tools needed for this are installed as part of the unity installation, adding this feature should be fairly simple (unless i am missing something).
     
  2. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    It's being worked on. Will keep you updated when that becomes available.
     
    alexeibabin and liortal like this.
  3. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    Is there any estimate? Is it days? Weeks? Months time?
     
  4. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    Being tested / verified now. Should go out later this week if everything goes well, otherwise next week at the latest.
     
  5. alexeibabin

    alexeibabin

    Joined:
    Feb 8, 2016
    Posts:
    4
    Great news :)
     
  6. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    @liortal: gradle support went out today, but hasn't made it's way into the UI yet. If you PM which project/buildtarget I can enable it for you though.
     
  7. TheADrain

    TheADrain

    Joined:
    Nov 16, 2016
    Posts:
    48
    This is great news, and potentially perfect timing for us as we'd love to use gradle on cloud build. However, we now seem to be unable to build any android builds?

    At first I thought it was a configuration issue as I've just started putting out live environment builds for our project, and indeed it was set up incorrectly. However, I've been unable to build any android projects all day today so I'm beginning to wonder if something has gone wrong? It seems like we're seeing an error from the Facebook SDK that indicates OpenSSL isn't installed on the cloud build device?
     
  8. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    @TheADrain - seems several others are having issues with Facebook SDK suddenly as well. We're investigating.
     
  9. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    @TheADrain - should be fixed now. If you're still having trouble building, let me know.
     
  10. TheADrain

    TheADrain

    Joined:
    Nov 16, 2016
    Posts:
    48
    It is working perfectly now, thanks for the rapid response.
     
  11. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    We have a custom proguard template. the build seems to fail during proguard (danny - i PM'd you now about this)
     
  12. mog-mog-mog

    mog-mog-mog

    Joined:
    Feb 12, 2014
    Posts:
    266
    I still can't find it the UI , is it there yet?
     
  13. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    From the "Config" page, it's under "Advanced Options" for any android targets.
    Screen Shot 2018-08-13 at 9.50.36 AM.png


    Here it is on the "Advanced Options" page:

    Screen Shot 2018-08-13 at 9.48.08 AM.png
     
  14. mog-mog-mog

    mog-mog-mog

    Joined:
    Feb 12, 2014
    Posts:
    266

    I do not see any such option , is it in beta or so?

    ucb-build-android.png
     
  15. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    It only shows up for targets configured with Unity 5.5 and above, as those are the versions of Unity that officially support it. And no, it's not in beta.

    Also, it may not show up on the page you pasted a screenshot of until you've actually configured it. Does it show up as an option if you click "Edit Advanced Options"?
     
  16. mog-mog-mog

    mog-mog-mog

    Joined:
    Feb 12, 2014
    Posts:
    266
    I am using version higher than 5.5, it does show the option when I click "Edit Advanced Options"
    Thank you