I\'m fighting with that issue for 2 days already and can\'t find any solution.
I have an Xamarin Android app in Visual Studio 2017 consisting of three projects:
This error is, somewhat of, a wrapper for what can be multiple reasons that that the file was not created. The key is to look in the detailed output and look for the underlying error causing the file creation failure.
In my case, I had corrupted icon.png files (generated right from from the VS xamarin nunit template, no less!). Once I put in valid png files, everything was built fine.