Build an Android development environment in Linux
Recently, I am tossing linux. Because we are engaged in Android development, we need to build an Android development environment. In this case, I want to help developers like me! Start it!
1. Install JDK
2. Install Android Studio
- Download. (later, upload the file named android-studio-ide-141.2422023-linux.zip;
- Unzip: unzip android-studio-ide-141.2422023-linux.zip. Get the android-studio folder.
- Install: sudo mv android-studio/opt
3. Install the sdk
- Android Studio is only a development tool without the SDK. You must download and install it yourself.
- Download the SDK to get the android-sdk_r24.3.4-linux.tgz File
- Unzip: tar-zxvf android-sdk_r24.3.4-linux.tgz to get the android-sdk-linux folder
- Update: installation path/tools/android. the SDK Manager will pop up to update the required components. However, Google cannot access the site in China, so we need to set up a domestic image site. The method is as follows:
- Select Options in the Tools menu of SDK Manager. The following dialog box is displayed.
To be filled in: HTTP Proxy Server, HTTP Proxy Port, tick the Force https://...sources to be fetched using http.
Then you can update it happily.
4. Start Using
/Opt/android-studio/bin/studio. sh. Well, there is a familiar startup interface, Binggo. You can have fun!
5. Download Related Files
Baidu: http://pan.baidu.com/s/1dDUrfnr
Extraction code: cf4w