AR core does not work with barracuda

Hello,

when using Ml agents and AR Code I get the Error, Unity Version 2021.3.3f1 LTS:

Multiple precompiled assemblies with the same name Google.Protobuf.dll included on the current platform. Only one assembly with the same name is allowed per platform. (…/Library/PackageCache/com.unity.barracuda@2.0.0/Barracuda/Runtime/Plugins/ProtoBuffer/Google.Protobuf.dll)

Multiple precompiled assemblies with the same name Google.Protobuf.dll included on the current platform. Only one assembly with the same name is allowed per platform. (…/Library/PackageCache/com.google.ar.core.arfoundation.extensions@b9496c2059/Editor/Scripts/Internal/Analytics/Google.Protobuf.dll)

any ideas how to resolve that?

Best

The AR Core Extensions package is owned and managed by Google; unfortunately it seems like Unity Barracuda is currently incompatible with it.

1 Like

Hi @GamerLordMat as @davidmo_unity said we don’t have a good solution at the moment. The problem being that both package provide there own version of protobuf and as you state this collide. A work around would be to grab the AR foundation package from source and remove the protobuf dll from it, it will then use the one provided by Barracuda. Do do that:

I hope it helps!
Florent

1 Like

Hello Florent,

thank you for your respons.
Your solution solved it, atleast I have no use for protobuf in my project.

It is a pitty that their are basically no AR-kits in active development anymore, it seems

With kind regards,

Matthew