Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix Error NU1202 Package Xamarin.Android.Support.CustomTabs

I'm building a Xamarin App!

When I install Xamarin.Android.Support.CustomTabs Nuget package it shows me this error and no other nuget package is updating even !

I tried everything searched on google but still I've no idea what to do with this error

Error:

Severity Code Description Project File Line Suppression State Error CS0103 The name 'Detail' does not exist in the current context DummyApp C:\Users\hashir.malik\source\repos\DummyApp\DummyApp\DummyApp\MainPage.xaml.cs 29 Active Error NU1202 Package Xamarin.Android.Support.CustomTabs 27.0.2 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Xamarin.Android.Support.CustomTabs 27.0.2 supports: monoandroid81 (MonoAndroid,Version=v8.1) DummyApp C:\Users\hashir.malik\source\repos\DummyApp\DummyApp\DummyApp\DummyApp.csproj 1

ScreenShot : https://i.stack.imgur.com/DaLBj.png

like image 547
Hashir Malik Avatar asked Jan 02 '23 06:01

Hashir Malik


1 Answers

You're trying to install the package to the shared project which is .Net Standard 2.0.

The Packages only need to be installed to the Android project. So uncheck "DummyApp" and only check "DummyApp.Android" in NuGet UI.

enter image description here

like image 69
magicandre1981 Avatar answered Jan 08 '23 18:01

magicandre1981