Forum Xamarin.Android not found

MarcoSeraphinMarcoSeraphin DEMember, University

Hi all,

I have created a Xamarin.Forms location based app using Xamarin.Forms Maps.

It runs on iOS perfectly (just publishing it to the Apple Store)

Now I tried to make an Android version.

Included Google Play Services, get an Google API key, all the stuff, added necessary other components, set Java Heap Size.

The app rebuilds (only With Linker set to "Don't link) and deploys to my physical device or the the new Xamarin Android Player (Google Play Service installed)

Then the app is started on the physical device or on the Android simulator.

During the start up, THIS error occurs:

[Mono] AOT module '' not found: Cannot load library: load_library[1093]: Library '/data/data/PickMeUp.Droid/lib/' not found

What can I do ? What did I wrong ?

Any ideas ?

(also after this error on the Xamarin Android Player this error comes also: [GooglePlayServicesUtil] Google Play Store is missing.)




  • MarcoSeraphinMarcoSeraphin DEMember, University

    When I set the linker options to "Link all assemblies" I get this error during compiling/linking:

    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: error : Error executing task LinkAssemblies: error XA2006: Reference to metadata item 'Android.Text.InputTypes Android.Widget.SearchView::get_InputType()' (defined in 'Xamarin.Forms.Platform.Android, Version=, Culture=neutral, PublicKeyToken=null') from 'Xamarin.Forms.Platform.Android, Version=, Culture=neutral, PublicKeyToken=null' could not be resolved.
    : error : Error building target _LinkAssemblies: Object reference not set to an instance of an object

    I am running 4.1.1 with the Xamarin Android Player and 4.0.2 on the physical device.


  • Ken.5472Ken.5472 GBMember

    Did you find a solution to this? I appear to be experiencing the same thing.


  • MarcoSeraphinMarcoSeraphin DEMember, University

    Hi Ken,

    yes more or less. The reason was not the missing DLL (the error is still there). But to get it compiled I got the following answer from the support team:


    I dug into the issue a bit more, and after the conclusion I came to is that the earliest version you can compile against is API 17. The textAlignment feature was only added in 4.2.

    Furthermore, this is sort of a cooked in feature to Xamarin.Forms, so to decouple it would be something rather untested and deep. If API 17 is still too new, then I would have to advise that you publish without the assemblies linked.

    So it is more or less an API issue concerning Xamarin.Forms BEFORE API level 4.2.

    But I decided to publish the bigger APK file with linker settings "Don't link". Because 22% of the android user uses API 4.1.x.



  • Ken.5472Ken.5472 GBMember

    Hi Marco,

    Many thanks - will have a play around with API levels and see if that helps.


  • Working with latest Xamarin in VS.
    using build API level 23.
    application works fine on phone with that level.
    but i have min and target set to level 19.
    and if i try to run app here i got same exception on startup.

    what's wrong?

    i tryed to lower build level, but if i use lower version of support library, then worse happens, it just don't works(can't find class AppCompatActivity and etc)

Sign In or Register to comment.