Xamarin Studio Error MSB4018: The “ConvertResourcesCases” task failed unexpectedly

前端 未结 6 1452
无人共我
无人共我 2021-01-14 23:34

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

相关标签:
6条回答
  • 2021-01-14 23:52

    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\
    
    0 讨论(0)
  • 2021-01-14 23:54

    I just had the same problem. The fix was add "READ & WRITE" on root folder and **rebuild **the project.

    0 讨论(0)
  • 2021-01-15 00:00

    I fixed this by cleaning my solution, deleting the obj and bin directories in my .Droid project and rebuilding.

    0 讨论(0)
  • 2021-01-15 00:05

    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.

    0 讨论(0)
  • 2021-01-15 00:06

    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

    0 讨论(0)
  • 2021-01-15 00:07

    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.

    0 讨论(0)
提交回复
热议问题