Missing LobbyEventCallbacks() when attempting to Build Android Version

I am trying to build com.unity.services.samples.game-lobby-main sample code and it builds correctly for Windows but fails when I attempt to build Android version.

The error is :-
Missing LobbyEventCallbacks but I file has #using defines

using Unity.Services.Lobbies;
using Unity.Services.Lobbies.Models;

I am using lobby 1.03 unity registry packages.

Cheers
Manjit

Hi Manjit! We did not get around to ensuring support for all the platforms Unity supports for this sample yet.
However ,I’ll try to reproduce this today and let you know what I find.

I had the same error you had before building, in the Editor. I noticed switching from PC to Android Editor mode removed my beta scripting define symbols.

After adding them back in, everything worked perfectly, and I was able to build and run on my Android device with no Issues.

Please ensure you have :
UGS_BETA_LOBBY_EVENTS
and
UGS_LOBBY_EVENTS
In your Editor Project Settings > Player > Scripting Define Symbols.

Like in this screenshot:
8628804--1159707--upload_2022-12-1_13-33-24.png

3 Likes

Why is this part of the package wrapped with these defines?

2 Likes

Yes, why? It should be listed on the documentation