After building with the Default build pipeline (not the platform build pipeline for 0.51) for Android, I get a crash right at startup.
Now I know there are multiple issues with building dots projects currently (after each build editor crashes, selecting faster (smaller) build, etc.) but I did manage to get a linux (server) build working, while the android build does not.
I assume it is netcode related due to the reference to Unity.Networking.Transport errors I receive.
Is this a known issue with the current editor version (2022.2.0b8) or did I miss a specific config needed to make a netcode projects work on android?
Any help would be appreciated.
(Error below)
2022/10/05 02:32:17.516 26071 26095 Error Unity NotImplementedException: The method or operation is not implemented.
2022/10/05 02:32:17.516 26071 26095 Error Unity at Unity.Networking.Transport.BaselibNetworkInterface.Initialize (Unity.Networking.Transport.NetworkSettings& settings, System.Int32& packetPadding) [0x00000] in <00000000000000000000000000000000>:0
2022/10/05 02:32:17.516 26071 26095 Error Unity at Unity.Networking.Transport.NetworkInterfaceLayer`1[N].Initialize (Unity.Networking.Transport.NetworkSettings& settings, Unity.Networking.Transport.ConnectionList& connectionList, System.Int32& packetPadding) [0x00000] in <00000000000000000000000000000000>:0
2022/10/05 02:32:17.516 26071 26095 Error Unity at Unity.Networking.Transport.NetworkStack.AddLayer[T] (T& layer, Unity.Networking.Transport.NetworkSettings& settings) [0x00000] in <00000000000000000000000000000000>:0
2022/10/05 02:32:17.516 26071 26095 Error Unity at Unity.Networking.Transport.NetworkStack.AddLayer[T] (T layer, Unity.Networking.Transport.NetworkSettings& settings) [0x00000] in <00000000000000000000000000000000>:0
2022/10/05 02:32:17.516 26071 26095 Error Unity at Unity.Networking.Transport.NetworkStack.CreateForSettings[N] (N& networkInterface, Unity.Networking.Transport.NetworkSettings& networkSett
Same problem here when building for Oculus Quest 2 (which runs on Android). But I get no error message. And I don’t have Netcode or Transport installed in my project.
Unity 2022.2.0b11 has fixed the player crashing when containing a subscene in the scene. When having set the compiler to IL2CPP. I don’t know however if the Unity Networking error has been fixed, but maybe it’s related.
Thank you @CMarastoni with these changes the build doesn’t crash anymore (with 2022.11b editor version).
Not sure if I should mark this thread as resolved, as it still requires to modify the netcode package, or wait until the package is updated with the fix?