title: Error: Could not find 2 Android X assemblies, make sure to install the following NuGet packages: - Xamarin.AndroidX.MediaRouter
body: <p>Using Jetbrains Rider, I created a new Xamarin application. Because Rider creates a Xamarin application with an older version (4.4.0.991640), I upgraded Xamarin to the latest version (4.8.0.1687).</p>
  <p>However, when I build, I get the following error:</p>
  <pre><code>Xamarin.AndroidX.Migration.targets(131, 9): Could not find 2 Android X assemblies, make sure to install the following NuGet packages:
   - Xamarin.AndroidX.MediaRouter
  You can also copy-and-paste the following snippet into your .csproj file:
      &lt;PackageReference Include=&quot;Xamarin.AndroidX.MediaRouter&quot; Version=&quot;1.1.0.1&quot; /&gt;
  </code></pre>
  <p>I followed the instructions by adding the snippet to my <code>.csproj</code> file.</p>
  <p><code>ExampleProject.Android.csproj</code></p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;Project DefaultTargets=&quot;Build&quot; ToolsVersion=&quot;4.0&quot; xmlns=&quot;http://schemas.microsoft.com/developer/msbuild/2003&quot;&gt;
      &lt;ItemGroup&gt;
          &lt;PackageReference Include=&quot;Xamarin.Forms&quot; Version=&quot;4.8.0.1687&quot; /&gt;
          &lt;PackageReference Include=&quot;Xamarin.Android.Support.Design&quot; Version=&quot;28.0.0.3&quot; /&gt;
          &lt;PackageReference Include=&quot;Xamarin.Android.Support.v7.AppCompat&quot; Version=&quot;28.0.0.3&quot; /&gt;
          &lt;PackageReference Include=&quot;Xamarin.Android.Support.v4&quot; Version=&quot;28.0.0.3&quot; /&gt;
          &lt;PackageReference Include=&quot;Xamarin.Android.Support.v7.CardView&quot; Version=&quot;28.0.0.3&quot; /&gt;
          &lt;PackageReference Include=&quot;Xamarin.Android.Support.v7.MediaRouter&quot; Version=&quot;28.0.0.3&quot; /&gt;
          
          &lt;!-- Newly added --&gt;
          &lt;PackageReference Include=&quot;Xamarin.AndroidX.MediaRouter&quot; Version=&quot;1.1.0.1&quot; /&gt;
      &lt;/ItemGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  <p>Then I:</p>
  <ol>
  <li>Ran <code>dotnet restore</code> on the solution</li>
  <li>Cleaned the solution</li>
  <li>Built the solution</li>
  </ol>
  <p>However, I'm still getting the error.</p>