The “ResolveLibraryProjectImports” task failed unexpectedly

后端 未结 24 1967
醉话见心
醉话见心 2021-01-01 09:48

I have a Xamarin project, which is based on MvvmCross. The project is for both iOS and Android. I opened this project in Visual Studio 15. I got some errors, wh

相关标签:
24条回答
  • 2021-01-01 10:07

    Your issue is most likely linked to this post on the Xamarin forums, and this bugzilla entry. Without a reproducible sample, all I can advise you try is:

    • Updating Xamarin for Visual Studio, Xamarin.Android, and Xamarin.iOS to the latest stable versions
    • Cleaning and rebuilding
    • Deleting all of the bin and obj folders from your project directories
    • Restarting Visual Studio/your PC

    Failing all of that, there's not likely to be anyone who can help you without a reproducible sample and potentially your Xamarin logs.

    0 讨论(0)
  • 2021-01-01 10:08

    Had same problem. Here is my solution

    1. Restart Visual Studio
    2. Open the Project
    3. Clean the solution
    4. Rebuild the solution
    5. Close solution
    6. Reopen the project
    0 讨论(0)
  • 2021-01-01 10:09

    edit your android project file (csproj) like below

    this issue topic may guide https://github.com/xamarin/AndroidSupportComponents/issues/51

    0 讨论(0)
  • 2021-01-01 10:09

    This is still a fresh problem, after all attempts i wanted to try to shift the code to a shorter path - however that is lot of work as svn management will get complicated, so i wanted to first verify if path is really an issue, one way to do this was to check where the android SDKs are stored. I am on mac and the investigation revealed that SDKs path was longer than my project path. Plus i tried with a fresh project, and that was compiling correctly.

    So i dropped the idea of shifting. Instead i used svn and compared what has changed since last correct build.

    The comparison revealed that the project file of droid was somehow referring to the project file of iOS, it seems like some bug of Visual Studio. So i reverted the changes and than all got back to normal.

    0 讨论(0)
  • 2021-01-01 10:11

    i get the same error and i usually solve this by closing all other opened xamarin solutions and there is one more way i had solved this issue -> go to taskmanager and find MSBUILD Service and end that service -> clean your solution -> Rebuild

    0 讨论(0)
  • 2021-01-01 10:11

    It's probably an issue with your references / reference assemblies?

    If you look under each project's references folder in the solution explorer, any references that visual studio cannot find, delete and re-add them (right click reference folder to add).

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