Setup Android Development Environment
1. Download Android Studio
Open the web page Android Studio, click to download Android Studio.
Select I have read and agree with the above terms and conditions
. Then click to download Android Studio.
The browser is downloading, please wait for the download to complete.
2. Install Android Studio
Find the downloaded dmg file in the Downloads
folder.
Double-click the downloaded dmg file and drag Android Studio to Applications.
Find the Android Studio application in the Applications directory. Double-click to open it.
The system will pop up a confirmation window to confirm opening. Confirm to open.
3. Install SDK
When opening Android Studio for the first time, AS will run the Android Studio Setup Wizard
.
Generally, keep Next and finally click Finish.
Next, the data will be downloaded from the network, please wait a moment.
If you have a good internet connection, it will be downloaded quickly.
Click Finish to complete the SDK installation.
4. Create A Demo and Run
After downloading the SDK, reopen Android Studio, and this welcome page will appear.
Click New Project
and choose the simplest traditional layout Empty Views Activity
.
Just keep the project configuration as default.
Then the source code will be opened and displayed. We wait for gradle to be downloaded and the Android project to be loaded.
This step of Sync may take a long time, so please wait a moment.
You may encounter gradle timeout, click Try Again
to try again.
After Sync is completed, click Run app
to run it in the simulator.
5. Advanced
5.1 AndroidDevTools
From this website, you can find a list of Android Studio downloads. Includes Installers
and Zip
, as well as various platforms.
5.2 Android SDK Manager
If you need to manage Android SDK, such as installing new SDK Platforms
and SDK Tools
, you can configure it by opening Settings -> Languages & Frameworks -> Android SDK
.
For older versions of Android Studio, it is not configured here. Instead, configure it in Settings -> Appearance & Behavior -> Android SDK
.