I'm trying to start developing some kind of hamarin. I am using Visual Studio version of Visual Studio:
Microsoft Visual Studio Enterprise 2017 Version 15.5.2 VisualStudio.15.Release / 15.5.2 + 27130,2010 Microsoft.NET Framework Version 4.7.02556
I am adding a new Xamarin project and getting errors below (without adding any code). I tried reinstalling Xamarin with no luck. Any ideas on how to fix this:
Severity Code Description Project File Line Suppression State Error CS0012 The type "AppCompatActivity" is defined in an assembly that is not referenced. You must add a reference to the assembly "Xamarin.Android.Support.v7.AppCompat, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null". App4.Android C: \ Users \ thomaseg \ Documents \ Visual Studio 2017 \ Projects \ App4 \ App4 \ App4.Android \ MainActivity.cs 12 Active Error CS0012 The type "AppCompatActivity" is defined in an assembly that is not referenced. You must add a reference to the assembly "Xamarin.Android.Support.v7.AppCompat, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null". App4.Android C: \ Users \ thomaseg \ Documents \ Visual Studio 2017 \ Projects \ App4 \ App4 \ App4.Android \ MainActivity.cs 12 Active Error CS0012 The type "AppCompatActivity" is defined in the assembly,which is not referenced. You must add a reference to the assembly "Xamarin.Android.Support.v7.AppCompat, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null". App4.Android C: \ Users \ thomaseg \ Documents \ Visual Studio 2017 \ Projects \ App4 \ App4 \ App4.Android \ MainActivity.cs 12 Active Error CS0012 The type "AppCompatActivity" is defined in an assembly that is not referenced. You must add a reference to the assembly "Xamarin.Android.Support.v7.AppCompat, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null". App4.Android C: \ Users \ thomaseg \ Documents \ Visual Studio 2017 \ Projects \ App4 \ App4 \ App4.Android \ MainActivity.cs 13 Active Error CS0012 The type "AppCompatActivity" is defined in an assembly that is not referenced. You must add the assembly link "Xamarin.Android.Support.v7.AppCompat, Version = 1.0.0.0,Culture = neutral, PublicKeyToken = null ". App4.Android C: \ Users \ thomaseg \ Documents \ Visual Studio 2017 \ Projects \ App4 \ App4 \ App4.Android \ MainActivity.cs 15 Active Error CS0012 The type" AppCompatActivity "was defined in the assembly, which is not referenced. You must add a reference to the assembly "Xamarin.Android.Support.v7.AppCompat, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null". App4.Android C: \ Users \ thomaseg \ Documents \ Visual Studio 2017 \ Projects \ App4 \ App4 \ App4.Android \ MainActivity.cs 17 Active Error CS0012 The type "AppCompatActivity" is defined in an assembly that is not referenced. You must add a reference to the assembly "Xamarin.Android.Support.v7.AppCompat, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null ". App4.Android C: \ Users \ thomaseg \ Documents \ Visual Studio 2017 \ Projects \ App4 \ App4 \ App4.Android \ MainActivity.cs 18 Active Error CS0012 The type "AppCompatActivity" is defined in an assembly that is not referenced. You must add a reference to the assembly "Xamarin.Android.Support.v7.AppCompat, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null". App4.Android C: \ Users \ thomaseg \ Documents \ Visual Studio 2017 \ Projects \ App4 \ App4 \ App4.Android \ MainActivity.cs 20 Active Error CS0012 The type "AppCompatActivity" is defined in an assembly that is not referenced. You must add a reference to the assembly "Xamarin.Android.Support.v7.AppCompat, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null". App4.Android C: \ Users \ thomaseg \ Documents \ Visual Studio 2017 \ Projects \ App4 \ App4 \ App4.Android \ MainActivity.cs 22 Active Error CS0012 The type "AppCompatActivity" is defined in an assembly that is not referenced.You must add a reference to the assembly "Xamarin.Android.Support.v7.AppCompat, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null". App4.Android C: \ Users \ thomaseg \ Documents \ Visual Studio 2017 \ Projects \ App4 \ App4 \ App4.Android \ MainActivity.cs 23 Active Error CS0012 The type "AppCompatActivity" is defined in an assembly that is not referenced. You must add a reference to the assembly "Xamarin.Android.Support.v7.AppCompat, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null". App4.Android C: \ Users \ thomaseg \ Documents \ Visual Studio 2017 \ Projects \ App4 \ App4 \ App4.Android \ MainActivity.cs 23 Active Error NU1202 Package Xamarin.Android.Support.v7.MediaRouter 25.4.0.2 is not compatible with monoandroid60 ( MonoAndroid, Version = v6.0). Xamarin.Android.Support.v7.MediaRouter 25.4.0.2 package supports: monoandroid70 (MonoAndroid,Version = v7.0)
Error NU1202 Package Xamarin.Android.Support.v7.CardView 25.4.0.2 is not compatible with monoandroid60 (MonoAndroid, Version = v6.0). Xamarin.Android.Support.v7.CardView 25.4.0.2 package supports: monoandroid70 (MonoAndroid, Version = v7.0)
Error NU1202 Xamarin.Android.Support.v7.AppCompat 25.4.0.2 package is not compatible with monoandroid60 (MonoAndroid, Version = v6 .0). Xamarin.Android.Support.v7.AppCompat 25.4.0.2 package supports: monoandroid70 (MonoAndroid, Version = v7.0)
Error NU1202 Xamarin.Android.Support.v4 25.4.0.2 package is not compatible with monoandroid60 (MonoAndroid, Version = v6.0) . Xamarin.Android.Support.v4 25.4.0.2 package supports: monoandroid70 (MonoAndroid, Version = v7.0)
Error NU1202 Package Xamarin.Android.Support.Design 25.4.0.2 is not compatible with monoandroid60 (MonoAndroid, Version = v6.0). Xamarin.Android.Support.Design 25.4.0.2 package supports: monoandroid70 (MonoAndroid, Version = v7.0)
Error CS1503. Argument 1: cannot be converted from "App4.Droid.MainActivity" to "Android.Content.Context" App4.Android C: \ Users \ thomaseg \ Documents \ Visual Studio 2017 \ Projects \ App4 \ App4 \ App4.Android \ MainActivity.cs 22 Active