Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to fix error: 'Xamarin.Forms recommends TargetPlatformMinVersion >= 10.0.17763.0 (current project is -1)'

I have a problem when I want to upgrade a Xamarin app from Android 9.0 to Android 10.

/Users/user/.nuget/packages/xamarin.forms/4.8.0.1269/buildTransitive/Xamarin.Forms.targets(5,5): 
Warning: Xamarin.Forms recommends TargetPlatformMinVersion >= 10.0.14393.0 (current project is -1) (WeatherApp)

The error is on this part of the code:

 <Warning
    Text="Xamarin.Forms recommends TargetPlatformVersion &gt;= 10.0.17763.0 (current project is $(MicrosoftUIXamlTargetPlatformCheckValue))"
    Condition="$(MicrosoftUIXamlTargetPlatformCheckValue) &lt; 17763" />

I want to run this app on Android 10, but every clean build and run app on a real Android device app not responding every time.

like image 877
Ben Johnson Avatar asked Dec 22 '20 09:12

Ben Johnson


1 Answers

There is a similar thread here.

And the Solution is:

I can confirm the issue has been fixed on the latest version of Xamarin.Forms (4.8.0.1687). It is the SP5.

I recommend to update the nuget package.

like image 75
nevermore Avatar answered Oct 10 '22 09:10

nevermore