Failed to create App archive. This type of CollectionView does not support changes to its SourceCollection from a thread different from the

1.9k views Asked by At

In Visual Studio 2017, while attempting to archive a Xamarin android project i get the following error after succesfull build:

Failed to create App archive "MyArchive". This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread.

Anyone else who have seen this error?

5

There are 5 answers

0
Liviu-IC On

Deleting the Bin and Obj folders also worked for me.

0
Sandeepani Senevirathna On

I had the same problem and I managed to solve it. Try removing the Support.v7 NuGet Packages and installing them again. Make sure to install the correct package versions as you do it. Good luck!

2
Scott On

I encountered the same issue. The only way I could get around it was to uncheck "Enable Multi-Dex" in Android Options. I think something might be broke in the latest version of visual studio 2017.

0
René AD On

I finally found that the solution for me, was to uninstall all the Xamarin.Android NuGet Packages from my solution, and then reinstall them.

0
Paul Kertscher On

In addition to the other answers I'd like to add that deleting all the bin and obj folders from my project worked for me.