Search Unity

Bug Code execution cannot proceed because UnityPLayer.dll was not found

Discussion in 'Editor & General Support' started by ChichoRD, Mar 19, 2022.

  1. ChichoRD

    ChichoRD

    Joined:
    Jul 31, 2020
    Posts:
    19
    Before launching a demo of a game I am making, I got to test the build in several machines and everything worked perfectly.

    However, on my friend's machine (a Windows 11, the same as mine) it does not even launch reporting the error in the title: "Code execution cannot proceed because UnityPLayer.dll was not found. Reinstalling the program may fix this probem". He had indeed reinstalled the program various times. Furthermore he has all the files in the same folder, the way you should run unity games, I attached a picture of it:



    I developed the game with Unity 2021.2.7f1 and both exported and tested it on Linux and Windows.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Enable "show hidden file extensions" in Windows explorer settings. I suspect UnityPlayer.dll got renamed to UnityPlayer.dll.dll somehow.
     
  3. ChichoRD

    ChichoRD

    Joined:
    Jul 31, 2020
    Posts:
    19
    Thanks for your advice and sorry for the delay in my response.

    I finally solved my issue by generating another build and ignoring the previous one. But still it's a clever idea to check for file extension duplication.