Bug of the Day: Mono for Android

Today’s bug is again sponsored by Mono for Android:

Random “The type or namespace name ‘XXX’ could not be found” errors when building

Mono for Android randomly produces “The type or namespace name ‘XXX’ could not be found” errors when building a solution. These errors don’t really exist and disappear after a rebuild.

https://www.youtube.com/watch?v=f7PMNHnUDFY

Android Source Code in Eclipse

Google made developing an Android app fairly simple. Everything you need can be downloaded for free from Android’s development site. This includes the Android API, an Android emulator (for running Android apps directly on your computer), and an Eclipse plugin called ADT (Android Developer Tools). However, there is was one thing missing: the Java source code.

Read more →

Bug of the Day: Fast Deployment

Today, I’ve been hunting down a bug in Mono for Android (4.4.55). This bug flooded the Android log with this entry (thousands of times):

02-04 17:09:32.010: W/(4300): Bad call to mono_mutex_lock result 11
02-04 17:09:32.010: A/(4300): * Assertion at /Users/builder/data/lanes/monodroid-mac-monodroid-4.4-series/6418373f/source/mono/mono/metadata/loader.c:2181, condition `ret == 0' not met

This flood of log messages made the whole deployment process very slow (54 seconds to deploy a fresh project).

As workaround I found that disabling Use Fast Deployment in the project settings “solved” the problem for me.

I’m still waiting for an answer from Xamarin on this issue. Update: This problem is tracked here.

Unit Testing Framework for MonoDroid

Currently MonoDroid (or “Mono for Android”) is lacking a unit testing framework. Since Xamarin (the guys behind MonoDroid) enable us to use C# on almost every platform it would be nice to be able to reuse C# unit tests written for Visual Studio on other platforms, such as Android.

This is the goal behind the MonoDroid Unit Testing Framework which can be obtained here:

https://bitbucket.org/mayastudios/monodroid-unittest/

Happy testing!

Overview over all testsDetails about one test method