What criteria do I use when choosing which Apis to download?

Asked

Viewed 465 times

1

Or do you have to download all the ones that appear on the sdk? I’m a fan.

  • The first criterion is the compatibility(version) of the API with your hardware platform, the others depend on the requirements of the project.

2 answers

2


This depends on which audience your app targets and the level of compatibility you want.

You can download the latest summer, but if you want your app to be compatible with older versions of Android, you should set the minimum version.

Below is configured to use SDK 21 (Lollipop), but maintaining support for SDK 14 (Android 4.0)

defaultConfig {
    applicationId "com.foo.meuapp"
    minSdkVersion 14
    targetSdkVersion 21
}

Or Androidmanifest.xml:

<uses-sdk android:minSdkVersion="14"
          android:targetSdkVersion="21" />

Currently, to support 90% of Androids you must develop your app with minimal API 14 support (reference).

1

You have to download the ones you need, I recommend downloading the 2.3.3

And all of 4.4 up.

Do not download the "EXAMPLES", at least I do not consider it necessary.

In short, download as you see fit.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.