0
Planned

Building to Android compiler error: Missing reference to SharedMemoryInterface in SharedMemoryInterfaceEditor

Henrik Nordlund 1 year ago in realvirtual.io Starter and Professional updated by Support 1 year ago 3

When switching build mode to Android, the SharedMemoryInterfaceEditor is still compiled but SharedMemoryInterface is not.

First line in SharedMemoryInterface:

#if UNITY_STANDALONE_WIN

First line in SharedMemoryInterfaceEditor:

#if (UNITY_EDITOR && !UNITY_EDITOR_OSX && !UNITY_EDITOR_LINUX)


Clearly, in android, the  SharedMemoryInterface is not declared but SharedMemoryInterfaceEditor is, leading to compiler error.

Work around: Change first line in SharedMemoryInterfaceEditor to:

#if (UNITY_EDITOR && UNITY_STANDALONE_WIN && !UNITY_EDITOR_OSX && !UNITY_EDITOR_LINUX)

Answer

Answer
Under review

Thanks a lot - which version are you using. In the current release we are able to build to Android? The compiler define  of your work around is a solution - in current release it should be solved by the assembly definition.

Nevermind, found the supported platforms page in the docs https://doc.realvirtual.io/advanced-topics/supported-platforms

Answer
Under review

Thanks a lot - which version are you using. In the current release we are able to build to Android? The compiler define  of your work around is a solution - in current release it should be solved by the assembly definition.