Getting Started with Android Development (1) | Development environment construction & Android Studio installation & creation of the first android project

Basic steps to build Android development environment for Android Studio:

  1. Install JDK (java development environment, Android is developed using java)
  2. Install Android SDK
  3. Download and install Android Studio software
  4. Install SDK-Manager
  5. Android Studio configuration SDK
  6. Android Studio creates the first Android project

Foreword:

Android is developed using the java language. I believe that almost all of the beginners of Android mobile development have been exposed to java. Therefore, the JDK installation and configuration should have been configured. I will not repeat them here. The following mainly introduces the recording of the installation and construction steps of Android Studio:

Install Android SDK

Android SDK is a free and professional programming language used to create Android applications. The Android SDK developed by Google for its Android platform is a convenient program for mobile application developers.
Android Studio is an Android development environment based on IntelliJ IDEA. Similar to Eclipse ADT, Android Studio provides integrated Android development tools for Development and debugging.

It doesn’t matter if you don’t have the SDK installed on your computer, because Android Studio will download the SDK itself. Here you can also download the SDK yourself, and unzip the downloaded zip package to a medium disk directory named by the English specification. Later, the Android Studio configuration points to the SDK. Can be

SDK download: https://android-sdk.en.softonic.com/

Install Android Studio

Google official download Android Studio: https://developer.android.google.cn/studio/
I downloaded the 3.5.2 version here, the interface icons of different versions are a bit different

Download URL for Gradle, SDK, etc.

Insert picture description here
Download the corresponding installation package according to your own computer system. I download the .exeinstallation package of the Windows operating system here . Before downloading, I agree to the agreement.
Insert picture description here
Let’s start to install Android Studio. Basically, select the default and then the regular "Next"

Insert picture description here
Insert picture description here
Here, choose the installation disk by yourself.
Insert picture description here
By default, select Android Studio. Click "Install" and
Insert picture description here
wait for the installation to complete. The
Insert picture description here
Insert picture description here
Insert picture description here
above Android Studio installation is complete. Next, start and configure Android Studio.
Insert picture description here
Because another version is installed on my computer, there will be more "Previous version" option here, please ignore, select "Do not importsettings", then click "OK"
Insert picture description here
click here "Cancel"
Insert picture description here
click "Next"
Insert picture description here
here to choose a color theme settings page, I like Darcula
Insert picture description here
because I have already installed the SDK download, here point to the SDK installation directory
Insert picture description here
Insert picture description here
if the previous If there is no SDK, the SDK will be downloaded here. The interface is as follows.
Insert picture description here
Due to the Google external wall, the download process may be very slow for a long time. Just wait patiently.
Insert picture description here

Install SDK-Manager

Android SDK Manager and AVD Manager use reference here:

Android Studio configuration SDK

Configure SDK: Click "Configre"–>"Settings"Insert picture description here

Select "Android SDK" and point to the SDK installation directory in "Android SDK Location"; and download the Android version "SDK Platforms", you can download all of them, or you can download them all. Because of the convenience of your own picture, you have downloaded all of them, not here It is recommended to download the version you need, the process is a bit slow, wait patiently...The
Insert picture description here
installation is complete, and the Android Studio configuration is basically completed
Insert picture description here

Android Studio creates the first Android project

Select the first option to
Insert picture description here
choose empty Empty Activity
Insert picture description here
complete the project name: name, project storage location, 注意:Language selection Java
Insert picture description here
process of building needs throughout the network, due out Gradle build the synchronization process may be slow, be patient ... !!! also fail
Insert picture description here
to build The success is as follows, a green triangle will appear, no error is reported
Insert picture description here

Configure to create a simulator
Insert picture description here
Click "Create Virtual Device" to create a simulated device, because I have already created one, so the list will show one here
Insert picture description here
. Choose the size you need in the list, and then "Next"
Insert picture description here

Run and click the green triangle to run.
Insert picture description here
Successfully run as follows

Please add picture description

Please add picture description

Guess you like

Origin blog.csdn.net/weixin_43853746/article/details/108457407