Java – Build the monodroid sample map application

Build the monodroid sample map application… here is a solution to the problem.

Build the monodroid sample map application

I’m using the map sample application “MapsAndLoactionDemo” that I downloaded recently from Xamarin and I get the following compilation error in Visual Studio 2010:

Error   10
Activate(java.lang.String,java.lang.String,java.lang.Object,java.lang.Object[]) in cannot be applied to (java.lang.String,java.lang.String, mapsandlocationdemo. MapWithOverlayActivity,java.lang.Object[]) ("MapsAndLocationDemo.MapWithOverlayActivity, MapsAndLocationDemo, Version=, Culture=neutral, PublicKeyToken=null", "", this, new java.lang.Object[] {  });
    D:\Projects\Android\MapsAndLocationDemo\MapsAndLocationDemo\obj\Debug\android\src\mapsandlocationdemo\   25  28  MapsAndLocationDemo

What’s wrong?


You need to install Google APIs on your emulator
You can follow this:

Installing the Google APIs Android SDK add-on
The Google APIs require the “Google APIs” add-on library, which is provided for each
API level. You need to download it for the API level you wish to

To install the Google APIs Android SDK add-on:

  1. Launch the Android SDK manager: $ANDROID_SDK_PATH/tools/android
  2. Within the Android SDK manager, click Available packages in the
    left-hand pane.
  3. In the right-hand pane, navigate to the tree view
    node Third party Add-ons /Google Inc. add-ons (
  4. Select the check-box for e.g. “Google APIs by Google Inc., Android
    API 8, revision 2”.
  5. Click the Install Selected button in the lower
    right corner.
  6. In the “Choose Packages to Install” dialog, select the
    Accept radio button, then click the Install button.

If you’re using a Genymotion simulator href=”″ rel= “noreferrer noopener nofollow”>INSTALL_FAILED_MISSING_SHARED_LIBRARY error in Android

Related Problems and Solutions