Reputation: 317
When I try to build any type of game using Unity, it is giving me this error:
Invalid build path: c:/users/dell/desktop/projects/unity projects/fox the game UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
It does this with any path
I can't seem to find any reason for this error. I am building on WebGL with 2D graphics.
Version: Unity 2019.1.1f1 Personal
Upvotes: 11
Views: 20894
Reputation: 1
I was having that error trying to put it in the desktop. Then I created a new empty folder in the desktop and it worked.
Upvotes: 0
Reputation: 194
I don't know why it worked but when I chose "downloads" as the exporting path, the error has gone.
Upvotes: 13
Reputation: 39
If you are a MacOS user set the path fully. So go to MacBook > Machintosh HD > Users > user and make a folder there.
Upvotes: 0
Reputation: 61
Just go to desktop -> create new folder -> and select that folder -> you are done
Upvotes: 6
Reputation: 11
Go to Player settings -> other Settings Under Target Architectures Uncheck the split APKs by Target Architecture
Upvotes: 1
Reputation: 1
Just select another path of your project (downloads or in a directory next to your project)
Upvotes: 0