Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 1645 [details]
exception screen shot
We have occasionally seen a failure when building the release APK for our solution. Unfortunately I don't have exact repro steps to get to the failure, but I can describe the failure and the fix.
After doing a lot of development and debugging in Debug mode, we get ready to release. We change to the Release configuration and select the startup project. We do a clean and successful rebuild, then use the Build menu in Studio to Package the APK. APK generation fails with a TypeLoadException (screenshot attached).
The "solution" is to simply hit F5 and let the app get built and then deployed to a connected target device. Once you do that, Build APK from the menu works just fine.
We've upgraded our Cecil to the latest for 4.1.1, so the TypeLoadException should go away. However, it'll probably then just reveal the real error.
If/when you get the real error, please open a bug for it so we can track it down.
Thanks for the report!