I also had this doubt when I started programming for Android.
I usually use a small list of packages (the minimum necessary) because I do not rely on emulator to test the code, I test directly on Smartphone.
Minimum list:
Tools:
- Android SDK Tools
- Android SDK Platform-tools
- Android SDK Build-tools
Android N.N (API NN)
Extras
- Android Support Repository
- Google Repository
Replace NN with the API level that is your target android:targetSdkVersion (22 is for Android 5.1).
If you program in Windows you may need Google USB Driver.
If you need an emulator, you don’t need to download all images, just download the ones you have Intel x86 Atom System image or Intel x86 Atom_64 System image (if your computer is 10 years old). Note: it is good to have at least 8 GB of RAM.
A case where the package Android Support Repository it is necessary when your android:minSdkVersion differs from the android:targetSdkVersion.
I’m not sure I quite understand that statement: The latest version. You should always compile the application using the latest version of the API. You should state it in build.Radle in compileSdkVersion version. Is there a reason for this? Or rather, if I don’t use the latest API it won’t work?
– Randrade
@Randrade When using the latest version you will be able to use all the features of this version, features that may not exist in previous versions.
– ramaral
I understood. It is that when reading that statement I understood something else. But thank you for clarifying. p
– Randrade