Build with Gradle in UCB

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).

It’s being worked on. Will keep you updated when that becomes available.

2 Likes

Is there any estimate? Is it days? Weeks? Months time?

Being tested / verified now. Should go out later this week if everything goes well, otherwise next week at the latest.

Great news :slight_smile:

@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.

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?

@TheADrain - seems several others are having issues with Facebook SDK suddenly as well. We’re investigating.

@TheADrain - should be fixed now. If you’re still having trouble building, let me know.

It is working perfectly now, thanks for the rapid response.

We have a custom proguard template. the build seems to fail during proguard (danny - i PM’d you now about this)

I still can’t find it the UI , is it there yet?

From the “Config” page, it’s under “Advanced Options” for any android targets.
3595551--291525--Screen Shot 2018-08-13 at 9.50.36 AM.png

Here it is on the “Advanced Options” page:

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

3598714--292011--ucb-build-android.png

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”?

I am using version higher than 5.5, it does show the option when I click “Edit Advanced Options”
Thank you