Can't open file on startup (using OneDrive)

When I try to start Unity, I get this error message: “Opening file Assets/prefabs/CursorController.prefab: The file cannot be accessed by the system.”

I started this project on my desktop, have been working on my laptop all week, and now I’m back on my desktop. It still opens fine on my laptop. The project folder is on OneDrive - I suspect its something to do with that.

I’ve tried:

  • Disabling syncing on onedrive.
  • Disabling my AV.
  • Deleting my library
    folder.

Help?

I figured it out.

Right click project folder > Make available offline

Then wait for it to sync.