Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
ImmersiveMatthew's avatar
4 years ago
Solved

vr_splash error (easy fix)

I did a search and have not seen anyone else post about an issue I am having so allow me to share as I surely cannot be the only one. I am getting the follow error every time I build to the Quest in Unity 2021.2.1f1. It started when I added a splash screen image under the XR Plug-In Management settings for Oculus. To get around the issue, just follow the path where it is copying too and delete the vr_splash.png file before each build. Unsure why this is happening, but hoping it gets addressed soon. Will log it as a bug.

  • OVRGradleGeneration.cs  on or about line 242.  

     

    File.Copy(sourcePath, targetPath, true);

     

    Adding "true" allows the FIle.Copy to overwrite without throwing an exception if the file already exists.  Not sure if/how this would ever actually work correctly unless the build staging area is cleared on each build, and maybe that isn't happening for us.

3 Replies

Replies have been turned off for this discussion
    • ImmersiveMatthew's avatar
      ImmersiveMatthew
      Adventurer

      Ahahaha.  Nice one! Could you please share the code you changed here so we can flag a MOD to share with Oculus or I can share on the Oculus Start Discord.  Thanks for sharing.

  • OVRGradleGeneration.cs  on or about line 242.  

     

    File.Copy(sourcePath, targetPath, true);

     

    Adding "true" allows the FIle.Copy to overwrite without throwing an exception if the file already exists.  Not sure if/how this would ever actually work correctly unless the build staging area is cleared on each build, and maybe that isn't happening for us.