Android SDK Manager - Do you need to install all Android platforms?
L

4

55

I just recently downloaded the Android SDK.
Downloading all the packages in the "SDK Manager" will take way too much time. So I'm wondering whether I should deselect all the platforms except the latest one.
Do I need all the platforms or which ones do I need?

Layfield answered 6/3, 2015 at 10:23 Comment(0)
F
61

Not at all. You just need to install those platforms which you are targeting for your apps and which you intend to test your app with. If I were you, I'd install:

  • API 24 (Multiple app windows, Notification enhancements, Multi-locale support)
  • API 23 (Runtime permissions toggling, Doze mode and BoringSSL)
  • API 21 (Massive changes, including Material Design)
  • API 19 (Many changes to various API methods)
  • API 18 (New features such as BLE, new API methods)
  • API 14 (Big overhaul - addressed several issues in Honeycomb)
  • API 11 (Quantum shift - native Fragments & Action Bar from API 11 onwards)
  • API 10 (Last of the "old" Android platforms - there are still people using this)

You should also install

  • SDK Tools 24.0.2
  • SDK Platform-tools 21
  • SDK Build-tools 21.1.2
  • Google Play Services SDK
  • Google USB Driver

Optional:

  • Offline documentation for each SDK Platform.
  • Platform source code - useful for a look under the covers.
Fungicide answered 6/3, 2015 at 10:31 Comment(4)
What about which files from a given API are required ? Like Android TV, Wear, ARM EABI, Intel x86 Atom and Google APIs (From my experience, TV and wear are not required (if you do not use them). What about the others ?Fusilier
@Veverke: please clarify what files you are referring to.Fungicide
Regarding my question above, in installing react-native, the docs state these are the files required from the API 23.Fusilier
@Veverke: All the files mentioned in the gist can be found in the SDK manager. Please look closely.Fungicide
A
13

No, You don't need to install everything.

Install the "SDK Platform" for the Android versions you've set as minimum, target, and in-between the minimum & target.

Examples:

Target API 23, Minimum API 23

  • Only need to install SDK Platform for API 23

Target API 23, Minimum API 15

  • Need to install SDK Platforms for API 15 To 23

Extras

The Android SDK Extras are usually not required; but it is useful to be aware of them since they may be required depending on your use case.

Above answered 26/11, 2017 at 20:31 Comment(0)
N
10

No, You don't need to download everything for every platform. You need to download only for those you are going to develop your application. E.g. If you are going to develop an application for Android 2.3.3 (API 10) then you only need to download for specific that platform only. You can choose to download support libraries from extra (If you need that).

EDIT
You also don't need to download all build tools. It's better if you use the latest one. For more queries on build-tools you can look at this questions:
What are the Android SDK build-tools, platform-tools and tools? And which version should be used?

Niu answered 6/3, 2015 at 10:32 Comment(0)
S
4

No, you only need to install the Target API and the Minimum API.

According to Microsofts article "Which Android SDK packages should I install?"

Android Platform(s)
Install the "SDK Platform" for the Android versions you've set as minimum & target.

Examples:

  • Target API 23
  • Minimum API 23

Only need to install SDK Platform for API 23

  • Target API 23
  • Minimum API 15

Need to install SDK Platforms for API 15 and 23.

Note that you do not need to install the API levels between the minimum and target
(even if you are backporting to those API levels).

Sampson answered 11/1, 2022 at 10:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.