I've been happily chugging away on my mobile platform project using Xamarin Studio. In fact, it's one of the only things I've been talking about recently. This post will talk about an interesting little bug that I ran into after installing the Xamarin Google Play Services Binding (ICS) NuGet package. COMPILETODALVIK
Fixing the COMPILETODALVIK Error in Xamarin Studio:
To fix the error in Xamarin Studio, do the following:
- Right-click on your project in the solution explorer
- Select "options" from the context menu
- Click the Android Build option in the left pane under build.
- Select the advanced tab
- Under Additional Options, put "1G" in the Java Heap Size text box.
- Clean and re-build
Basically what was happening (at least in my case) was that the heap size was larger than the default Java heap size due to all the extra stuff added by the google play services binding. This was causing it to fail to build right at the end. By increasing the maximum allowed heap size, the project will now build. You could probably go smaller than 1G, but AFAIK, it shouldn't harm anything by leaving it at 1G.
Hope this helps!!!