Android studio installation and configuration, and androidstudio Configuration
Android studio installation and configuration
1. First download the Android studio installation package, which can be MB in bytes. The installation package does not contain the SDK.
2. After downloading the installation package, click to install it. The following page appears in sequence:
Select the installation path here.
The Android studio program has been installed, but you still need to configure it. Check Start Android Studio and click finish to Start.
Select the second item and click OK. The following startup interface is displayed.
It will pop up at startup
Click cancel to go to The AS Installation Wizard Page.
Click next To Go To The UI theme selection page. You can select your preferred style. Here, select Darcula style.
Here, you need to specify the local path of the SDK. If an SDK already exists on your computer, you can specify this path, so you do not need to download the SDK later. I will demonstrate the scenario where no SDK is installed locally, you can specify a path for saving the SDK later;
Click Finish to automatically download the SDK)
After the SDK is downloaded, click Finish to enter the AS welcome page.
3. Configure the AS first running environment and compile and run an APP. Take helloworld AS an example.
Click Start a new Android Studio project in the "Create a project" column to go to the following page.
At this point, a project has been established. The first project will find the startup interface stuck below.
When the project is stuck on this interface for the first time, it is because the gradle build tool is downloaded from the Internet. Due to download from a foreign site, the network speed is very slow. Click here to cancel closing the interface and manually configure gradle;
First, find the path of the. gradle folder, which is generally under the user account folder. For example, here is C: \ Users \ issuser \. gradle.
You will find that the files in this folder are generated
Upload the compressed package, and then put it under this path and decompress it. Be sure to put it under the randomly generated folder with a long string of characters, as shown in
Click the link below the figure to download the SDK. An error will still be displayed after Try again is executed. Click Download again, and then click Try again, until an error is reported. (In addition to this solution, you can also manually change the compileSdkVersion and buildToolsVersion In the build. gradle file.
The targetSdkVersion is the corresponding 27, which can be solved later)
After completing the gradle build, you can click build apk in to compile and package the apk file, as shown in figure
After the apk file is generated, export the apk file to the simulator or real machine for installation. Run the following command:
Now, the installation and development environment of Android Studio has been configured.