I am a beginner.
Whenever I write code, I get confused.
It is when the compiler issues warnings about the API level (SDK version)
, either in XML code
or in Java code
.
In my gradle
, the current minSdkVersion
is 19
. Originally it was around 16
.
When I first wrote the code, I frequently encountered API level issues
. And it seems that the minimum version is too low, so I uploaded the version.
Nevertheless, when writing code, there are many times when a higher API level
is requested.
So I am confused.
Maintaining the current version (level 19) Should we handle issues according to the API level? (I don't know how to set it up. Especially in xml)
Or should I just upgrade the version to level 21
? (Currently, the api level
issue encountered in xml is 21
)
What level of level is better to set the minimum level?
Since I am a beginner, I am not sure how much to set the api version.