Run the .exe or .tar.gz and follow the Setup Wizard to download required SDK components.
Drag the Android Studio icon into your Applications folder from the .dmg file.
Android Studio is the official development environment. It includes everything you need: the code editor, the Android SDK (Software Development Kit), and an emulator for testing.