Forum Xamarin.Android

Can I use Xamarin Forms to build an Android 6.0 application?

lpinholpinho USMember ✭✭

I'm trying to build a Xamarin Forms application to run in an Android 6.0 android box, but I'm always getting the error while compiling:

Package Xamarin.Android.Support.v7.CardView is not compatible with monoandroid60 (MonoAndroid,Version=v6.0). Package Xamarin.Android.Support.v7.CardView supports: monoandroid70 (MonoAndroid,Version=v7.0)

Is there any way to get the package for Android Version 6.0?


L. Pinho

Best Answer


  • lpinholpinho USMember ✭✭

    Hi, thanks, it still works targeting to version 7.0 :)

  • nbinbi Member ✭✭

    Hmm, no that doesn't work - at least not in all scenarios. According to the documentation Setting Target Framework and Target Android to 8.1 and Minimum Android to 6.0 should result in a configuration that can build an apk that runs on 6.0 up to 8.1. It runs fine on the VS 2017 included emulator, but on my Marshmallow phone it produces an exception:

    01-31 10:07:56.664 32388 32388 E AndroidRuntime: Process: com.companyname.App1.Android, PID: 32388
    01-31 10:07:56.664 32388 32388 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_27 or Xamarin.Android.Platform!

    Is VS 2017 not honoring the minimum target framework (which is set to v6.0)?

  • lpinholpinho USMember ✭✭

    Hi NBI,

    I'm rebuilding my application in Xamarin.Android to make it work.
    I gave up Xamarin.Form for this particular scenario.

Sign In or Register to comment.