Search Unity

Failed to load 'Microsoft.Xbox.Services.140.UWP.C', expected x64 architecture

Discussion in 'Windows' started by Samustai, Nov 26, 2019.

  1. Samustai

    Samustai

    Joined:
    Oct 7, 2019
    Posts:
    19
    Hi. I'm build clean UWP project with Xbox Live plugin.
    Unity version 2018.2
    Plugin downloaded from https://github.com/Microsoft/xbox-live-unity-plugin/releases

    In editor it's all work fine. But when i build project and run on Xbox i have error on start:
    Loading native plugins
    Loading Microsoft.Xbox.Services.140.UWP.C.dll
    Failed to load 'Microsoft.Xbox.Services.140.UWP.C', expected x64 architecture, but was Unknown architecture. You must recompile your plugin for x64 architecture.

    How can i fix it?
    Thanks for answers in advance
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    What version/build/update of the Windows 10 OS are you running? That file doesn't seem to have any additional dependencies so it's not clear why it doesn't work.
     
  3. Samustai

    Samustai

    Joined:
    Oct 7, 2019
    Posts:
    19
    Windows 10 Pro Version: 1909, Build 18363.449
    Build with VS 2017 and SDK 10.0.16299.0
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Actually, I think you're running into this bug:

    https://issuetracker.unity3d.com/is...-load-native-plugin-with-a-period-in-its-name

    I think that the error is no issue for concern: scripts will still be able to call into it via DllImport attribute. This would be an issue if it was a graphics plugin and needed to call back into the engine but as far as I can tell, this plugin doesn't need to do that. So you should be able to just ignore that error.