Mono for Android 4.2.5


Known issue: Immediately after upgrading, users may have trouble loading Mono for Android projects. Please restart MonoDevelop again if you experience this.

Visual Studio Users: You should be prompted with this update when you open a MFA project. You can also check manually in Tools > Options > Mono for Android.

MonoDevelop Users: You should be prompted to upgrade next time you open MonoDevelop, or you can use Help > Check for Updates. IDE support requires MonoDevelop 3.0. Layout Designer fixes require MonoDevelop 3.0.4.

New Features

  • Deployment to API Level 16 ("Jelly Bean") hardware devices works.
  • API Level 16 binding. We would appreciate any review of the updated bindings. - Note : When deploying a Debug build of an existing project to a Jelly Bean device, you must clean and rebuild the project first. Failure to do so will result in Permission Denied errors during installation.
  • If you continue to get Permission Denied failures after rebuilding the project, application data is being preserved across package removal and reinstall. Either manually uninstall the package from the Settings app, remove the app using *adb uninstall*, or disable the Preserve application data/cache between device deploys option.

  • The NDK <android/bitmap.h> header is now bound and exposed in Android.Graphics.Bitmap.

Bug fixes

  • Don't lookup base types on Annotations. Email thread .
  • Fix missing R class issue in Android library project support in Java binding project. It involves some design changes explained later.
  • Remove Regex dependency from UriParser.
  • Fix HttpWebRequest so that the buffered request isn't sent until GetResponse() is called.
  • Add NetworkStream.ReceiveTimeout, NetworkStream.SendTimeout.
  • Fix HTTP cookie parsing.
  • Improve Socket and Thread.Abort() interaction.
  • Enable IPv6 support.
  • 1553 : NullReferenceExceptions in WebConnectionStream & WebConnection
  • 2663 : Regular Expressions bug
  • 2965 : Socket.SendToAsync loses operations when called too quickly, followed by runtime crash
  • 4385 : Cannot set value of a nullable from immediate window
  • 4640 : WebRequest::GetRequestStream blocks indefinitely (up to timeout)
  • 4659 : Error in soft debugger method call thread
  • 5577 : Mono.Data.Sqlite: column types aren't preserved
  • 5617 : Mono.Facebook usage
  • 5697 : DateTime.ToFileTimeUtc should convert to UTC if needed
  • 5710 : HttpWebRequest::Abort does not release socket
  • 5768 : InvalidCastException when retrieving a boolean value from sqlite reader
  • 5868 : Java Binding Project cannot reference a library project
  • 5979 : List support in generic method instantiation in binding got broken by JavaObjectExtensions.JavaCast()
  • 5985 : RectangleF.Contains()
  • 6117 : When deploying to Android 4.1, you get "Data at the root level is invalid. Line 1, position 1."
  • 6126 : Support package: ViewPager PageScrolled NoClassDefFoundError
  • 6186 : Android library project binding needs to generate Resource.designer.cs and avoid conflicts
  • 6236 : Application does not Run/Debug through VS 2010 and VS 2012
  • 6255 : Unable to run the MFA application using MonoDevelop 3.1.0
  • 6256 : Stylable resource ids gets messed up in Resource.Designer file
  • 6475 : GC runs constantly on API <= 7 targets
  • 6482 : Deploy to device can get frozen when trying to detect packages
  • 6645 : For 'Button' Application,one build error displayed "System.IO.DirectoryNotFoundException"
  • 6654 : AutoResetEvent state is getting corrupted

Layout Designer fixes

Visual Studio Users: The Layout Designer is installed with Mono for Android.

MonoDevelop Users: The Layout Designer is not included in the Mono for Android installer; the layout designer fixes are included in MonoDevelop 3.0.4.

Changes needed to Android Library project support in Java binding project

This version fixes the issue that Android library project Jar binding could not generate R classes with the expected package name. Through this fix, we noticed that "bin" directory contents in Eclipse/Ant project packaged as AndroidLibraryZip is not enough. This directory contains only whatever required by the library itself.

To fix this issue, we have to make some requirement changes to AndroidLibraryZip: it has to contain top-level "res" and whatever required, as well as the jar itself in "bin", packaged into AndroidLibraryZip. Typically you can select "res" and "bin" and compress them into a zip, then add it to the project as AndroidLibraryZip.

Note that Android Library Project does not support "assets". For details, see


Warning: Samsung shipped a broken kernel with Android 2.1, which is not able to support JIT compilation. If you possess a Galaxy-class device with Android 2.1, you will get unexpected results, this is caused by a kernel bug that breaks cache coherency, rendering any engine doing JIT compilation useless. Check with your manufacturer/carrier for an Android 2.2 update.

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.