Mobile Application Development from scratch Andrews Andrews write small programs

A test installation of our development environment

A development tool

We developed using a Google Android Studio produced, which integrates the functions of IEDA, after learning of the small end development partners are certainly familiar with IDEA, of course VsCode also a good choice
here I put a link to download Android Studio
Android Download

Set up two environment (Note: The environment configuration documentation is to look at the relevant part of the teacher to direct Tieshanglai)

(1) JDK version checking
Windows + R to open the Run window, type cmd, click OK, enter the command window,
enter java -version see the following tips may prove JDK already installed skip JDK installation (JDK version must be greater than 1.7)
Here Insert Picture Description
( 2) JDK installed
JDK download the official website address
after the download is complete install the JDK (version as long as the note is higher than 1.7, the latest version does not have to)
Here Insert Picture Description
all the way to click on the next line, of course, put the jdk path to think about , in order to avoid future can not find
(3 ) the JDK environment variable configuration
to open the control panel and security system click, click systems, advanced system settings left click, click in the system environment variable properties window, the new system environment variable JAVA_HOME: in the below system environment variable (S) regions, click New, variable named JAVA_HOME, variable value is your own JDK installation path. (If too jdk is not installed, not in the system variable JAVA_HOME, need to create), an increase of% JAVA_HOME% \ bin, double-click Path in the Path, click New, type% JAVA_HOME% \ bin
below put some map, so clearly the junior partner white point
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
(4) JDK mounting detection

win + R to run, type cmd, and hit enter, enter java -version, noted with a space, operating results are as follows:
Here Insert Picture Description
input the javac, operating results are as follows:
Here Insert Picture Description
(. 5) mounting the Android Studio
click put download package I above, and installation, installation path, although the troupe said installed in the default path, but the C drive pleaded, so the C drive is not enough small partners can choose their favorite remember the path to the installation, the installation was successful screen as follows
Here Insert Picture Description
(6) Android Studio's Configuring
because we are the first to use this software, so do not import configuration settings for
Here Insert Picture Description
this map to see Do not be afraid, we cancel, we went back again to install the tool in
Here Insert Picture Description
point the Next
Here Insert Picture Description
Standard and Custom two options, respectively installation of Android Studio standard settings and custom settings. If you select the Standard option, the program will be installed by default a lot of configurations to meet the basic development needs. If you select the Custom option, you need to manually configure the installation. Here is recommended to select Standard, the default configuration installed Android application development needs. Click the Next button to go to Select UI Theme Select Theme window UI
Here Insert Picture Description
theme of their own choice a
Here Insert Picture Description
waiting download is complete
Here Insert Picture Description
points finish after the completion of
Here Insert Picture Description
this Andrews configuration tool
Here Insert Picture Description
to create (7) SDK configuration and simulator
just is not a small pop-up error baa, we now to solve what
create a new project after click this button
Here Insert Picture Description
and then enter this interface
in the window shown in Figure 1, select the Android SDK left side, the right side corresponds to the number of options that can be set Android SDK, which:
Android SDK Location: storing a path for setting the Android SDK
SDK Platforms: Android SDK represented version information that shows the name of all the SDK version, the API level, and download status information under this tab
SDK Tools: represents the Android SDK tool set, the tag list of Android build tools Android SDK build-tools, mirroring tool simulator
in the SDK Platforms and SDK tools check option to download the tools and the corresponding SDK version, to download SDK8.1 example, Follow these steps:
Here Insert Picture Description
Download the SDK version. In selected SDK Platforms Android 8.1 (Oreo) entry, click OK or Apply will pop up to confirm the installation of the SDK Confirm Change window assembly
Here Insert Picture Description
in FIG. 2 widget, click the OK button, enter Component Installer download window, shown in Figure 3
Here Insert Picture Description
after the download is complete window shown in Figure 4, click Finish to close the window, back to Settings for New Projects window.

Here Insert Picture Description
In the Settings for New Projects window, click the SDK Tools tab and select the Android SDK Build-Tools, shown in Figure 5.
Here Insert Picture Description
Then check Settings for New Projects lower right corner of the window Show Package Details, will open the Android SDK Build-Tools the SDK version list information, check the list 26.0.0 entry, click OK comfirm Change pop-up window, shown in Figure 6.
Here Insert Picture Description
in Figure 6, click OK to enter Component Installer download window, shown in Figure 7
Here Insert Picture Description
after some time, the SDK download completion, the download is complete the display window 8
Here Insert Picture Description
is then (in the simulator our program simulates the operation) we download simulator

Under the project did not create: Open the Android Studio startup page, click Configure below, click on the list of AVD Manager, as shown in Figure 0, Your Virtual Devices pop-up window
Here Insert Picture Description
has been created in the case of project: automatically enter the open Android Studio the last open project, click Tools-> AVD Manager or AVD Manager icon to bring up Your Virtual devices window
Here Insert Picture Description
to select an analog device. Click Create Virtual Device in FIG 1, the simulation device into the selected window Select Hardware,
Here Insert Picture Description
download SDK System Image. In FIG. 2, which is the device type Category left, middle name of the device corresponds to, size, resolution, density information, the right side is the preview device. Here select Phone-> Nexus 4, click Next to enter the System Image window

Here Insert Picture Description
Recommended Android system the left image, right image for the selected icon corresponding Android system. Here selection system version 8.0 to download, select Orec system version, click Download into the License Agreement window,
Here Insert Picture Description
select Accept to accept the information displayed in the window, click Next to enter the download window Component Installer

Here Insert Picture Description
Create analog devices. When the download is complete, click Finish to close the current window and return to the System Image window, then select the name of the entry system version of Oreo
Here Insert Picture Description
click the Next button to access the Android Virtual Device window

Here Insert Picture Description
Click Finish, to complete the creation of the simulator, which displays created simulator in Your Virtual Devices window,
Here Insert Picture Description
open analog devices. Click the Start button in Figure 8, start the emulator, after the completion of the interface after startup Figure
Here Insert Picture Description
role so far, our environment to build complete, the next I will write our first HelloWorld applet, and introduce some documents

Published an original article · won praise 0 · Views 4

Guess you like

Origin blog.csdn.net/qq_42557251/article/details/105180580