Android Studio installation and configuration
1, first download the Android Studio installation package, you can download the latest version from http://www.android-studio.org/, This demo is available in version 3.0, with installation package Android-studio-ide-171.4408382-windows.exe, installation package size 681 MB, installation package without SDK
2, download the installation package, click to install, in turn, the following screen appears
Choose the program installation path yourself here
The Android Studio program is installed here, but it still needs to be configured; tick start Android Studio and click Finish to start as, which appears
Select the second item and then click OK to appear below the launch screen
It pops up when it's started.
Click Cancel and go to the Installation wizard interface of AS
Click Next to enter the UI interface theme Selection screen, you can choose your favorite style, here choose Darcula Style
Here you need to specify the local path of the SDK, if the SDK already exists in the previous computer, you can specify the path, you can follow up without downloading the SDK; Here I demonstrate a scenario where the SDK is not installed locally, where you can specify a subsequent path to save the SDK;
After clicking Finish, start downloading the SDK automatically (note that you need to make sure that the computer is connected at this time)
After downloading the SDK, click Finish to enter the Welcome screen of AS
3, configure as the first operating environment, and can successfully compile and run an app, take HelloWorld as an example.
Click on the start a new Android Studio project to create a new project and go to the following interface
To this, a project is established, the first project will be found stuck in the following start-up interface
The first time to establish the project card in the interface, is because the download from the Internet Gradle build tool, because the download from the foreign site, the speed is very slow, here click Cancel to close the interface, the use of manual configuration Gradle;
First find the path to the. Gradle folder, usually under the user account folder, for example, I'm C:\Users\issuser\.gradle here.
You will find the files in this folder that were generated in the
The gradle-4.1 here refers to the version, which is automatically generated according to your as version, At this point we can go online to download a Gradle-4.1-all.zip compressed package, and then put in the path and decompression, note must be placed in this randomly generated a long string of characters under the folder, such as
At this point, click on the link below to download the SDK, it may be downloaded once, after executing Try again here will still show an error, then click to download again, and then click Try again until the error is dismissed. (in addition to this workaround, you can manually change the compilesdkversion in the Build.gradle file ,buildtoolsversion
Targetsdkversion for the corresponding 27 can also be resolved, this follow-up again speaking)
Once the above gradle is built, you can click on the build apk to compile the package apk file, the resulting apk file path as shown in
After generating the APK file, export the APK file to the emulator or the real machine to install it, run as follows
So far, the installation and development environment for Android Studio has been configured.
Android Studio installation and configuration