Reputation: 87
I use VS 2019 and Xamarin
I try to run the example (new project), but I need level API 19 (Android 4.4.2)
I was set target, minimun sdk. But get error while build
"Severity Code Description Project File Line Suppression State Error The $(TargetFrameworkVersion) for App4.Android (v4.4) is less than the minimum required $(TargetFrameworkVersion) for Xamarin.Forms (8.1). You need to increase the $(TargetFrameworkVersion) for App4.Android. App4.Android"
I have already tried select different Android version (5,6,7), but apart from 8 only.
I don’t. Search on sites they write, simple changed and use. But in reality, this is not so. In general, is it really possible to write below Android 8?
Upvotes: 1
Views: 4043
Reputation: 14956
you could set your TargetFram Version
to the latest version
,then set the Minimum version
to 19
, Target Version
to the same as TargetFram Version.
In general, the Target Android Version should be bounded by the Minimum Android Version and the Target Framework. That is:
Minimum Android Version <= Target Android Version <= Target Framework
Upvotes: 3
Reputation: 2178
As described here Expanding target API level requirements in 2019, In order to provide users with the best Android experience possible, the Google Play Console will continue to require that apps target a recent API level:
and in future as well the target API level requirement will advance annually.
So you need to set target api version as required, however your app will work on all the phones with minimum sdk support. Minimum sdk version you can set based on the features supported by your app.
Upvotes: 2