title: Xamarin update project to SDK 24
body: <p>I have a Xamarin.Android project that is about two years old. I am wanting to update the project to support Android API level 24, and have set the "Target SDK" in the options pane to said level. I also need to use version 24.2.1 of the Android Support Library in order to support run-time permissions. I am currently using version 22.2.1 of the support library. This does not apparently include run-time permission checking.</p>
  
  <p>I have tried to update the support library to version 24.2.1 using the normal method by right-clicking on the package and choosing update. However, when I do this I get the following error.</p>
  
  <pre><code>Could not install package 'Xamarin.Android.Support.Compat 24.2.1'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v4.4', 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.
  </code></pre>
  
  <p>I have ensured that all shared projects and libraries I am using in my project are set to use the latest SDK available which is version 7.0 (API 24). Again, I have ensured that the target SDK version in my project is set to version 7.0 (API 24). However, if I set the "automatic" version option then Xamarin tells me the version is 4.4 (API 19).</p>
  
  <p>After spending hours looking through every package, reference and component in my project, it's a rather large one, I've found that the Mono.Android version says it support Android 4.4. I'm thinking this must be the culprit that is preventing my project from being compiled with the version 7.0 SDK. (Please see screenshot below).</p>
  
  <p><a href="https://i.stack.imgur.com/QVabI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QVabI.png" alt="enter image description here"></a></p>
  
  <p>I went ahead and made a brand new project using the normal "Add Project" method in Xamarin, and when I did it showed the following.</p>
  
  <p><a href="https://i.stack.imgur.com/kuij4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kuij4.png" alt="enter image description here"></a></p>
  
  <p>As you can see in the screenshot the newer test project shows it supports v7.0, and when I set the automatic target in my options pane it correctly says Android 7.0 (API 24). Also, I'm able to import the Android Support Library v4 version 24.2.1 in the project.</p>
  
  <p>I suppose my question here is has anyone ever had this issue before and found as solution other than making a brand new project and moving all code files over? Is there a way to update the Mono.Android package? I do not see a way todo that within the package manager or the reference menu.</p>