Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Could not add Xamarin.Android.Support.Design Component to Project

$
0
0

Hey all,

I'm trying to add the Support Design Library Component from the Component Store, but I'm receiving the following error:

Could not install package 'Xamarin.Android.Support.Design 25.1.1'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v5.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

As a side note, I've been following along with the Toolbar example code to replace the very old title bar that's in our app project.
Download example project here.

For both my project and the demo that you can download, the target platform is API 21 or Android 5.0. Based off the error message, I would suspect that this is the issue, but that seems contrary to what the documentation says about how to use the Support Design Library:

Using this support library requires that your app have its Target Android Version (targetSdkVersion) set to Lollipop (5.0 - API Level 21) or higher, or you will have aapt related compile errors.

Does anyone have any recommendations?


Viewing all articles
Browse latest Browse all 204402


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>