I am getting the following error while trying to build my solution. I am trying to update an existing project that I haven\'t touched for a few months. Its location in my PC
OK I finally figured it out. For the benefit of those encountering the same problem here's how I fix it. It's caused by any non English character in the root solution folder.
For example my original solution location is
D:\Users\OneDrive\Dev\Xamarin\TekaTeki3\TekaTeki3\
I created a new folder and rename the folder from TekaTeki3
to TekaTekiTiga
. Now it compiles properly!
D:\Users\OneDrive\Dev\Xamarin\TekaTekiTiga\TekaTeki3\
I just had the same problem. The fix was add "READ & WRITE" on root folder and **rebuild **the project.
I fixed this by cleaning my solution, deleting the obj and bin directories in my .Droid project and rebuilding.
Deleting bin and debug folder/Changing the solution directory name nothing worked, I solved it by moving the solution from "C:\Users\Dell PC\Desktop\studies\SampleProjects\Xamarin\XamarinFCM" to "C:\XamarinSamples\XamarinFCM"
What I feel is xamarin solution expect a shorter directory path. not sure why Microsoft leave this kind of bug.
For me this Solution works, I have only shorten the Path of solution like,
previously it was
D:\Projects\Xamarin_Projects\Git_Test\WCP_Solution
I shifted my project location to shorter path like
D:\Projects\WCP_Solution
because there is character limit Android solution
I imagine there's a bug but here's a workaround:
The error is telling us it can't find a directory.
Create the directories manually, then rebuild. There will be 3 new missing directory complaints - just manually create those directories as well.
Rebuild-All should work now.