3.4. Android Studio installation

发布时间 :2025-10-25 12:24:11 UTC      

image0

3.4.1. Step 1-system requirements

You can start Android application development in the following operating systems:

  • Microsoft ®Windows ®8/7/Vista/2003 (32 or 64-bit).

  • Mac ®OS X ®10.8.5 or higher

  • GNOME or KDE Desktop

All the tools needed to develop Android applications are open source and can be downloaded from the Internet. The following is a list of software you need before you start Android application programming:

  • Java JDK5 and later versions

  • Java Runtime Environment 6

  • Android Studio

3.4.2. Step 2-install Android Studio

Overview

Android Studio is the official IDE for developing Android applications, based on Intellij IDEA. You can learn from the official website. Android Studio下载 Download the latest version of Android Studio. If you are new to installing Android Studio on Windows, find the download file named android-studio-bundle-135.17407740-windows.exe and run it through the Android Studio wizard guide.

If you want to install Android Studio on Mac or Linux, you can start from the Android Studio Mac 下载 Or Android Studio Linux 下载 Download the latest version and view the instructions provided with the download file. This tutorial assumes that you install your environment on the Windows 8.1 operating system.

Installation

Make sure that Java JDK is installed before you install Android Studio. To install Java JDK, see the Java development environment configuration section.

image1

Once you start the Android Studio installation, you need to set the JDK5 or later path in the Android Studio installer.

image2

The following picture initializes the JDK for Android SDK

image3

Check the components required to create the application. “Android Studio”, “Android SDK”, “Android virtual machine” and “Intel chip” are selected in the following figure.

image4

You need to specify the path to Android Studio and Android SDK on this machine. The following figure shows the default installation location on the windows 8.1 64-bit architecture.

image5

Specifies that the default ram space required by the Android simulator is 512m.

image6

Finally, extract the SDK package to the local machine, which will last for some time and take up 2626m of hard disk space.

After completing the above steps, you will see the end button, and you can open the Android Studio project in the welcome screen, as shown below:

Start Android application development by calling to start a new Android Studio project. On the new installation page, the application name, package name information and project path are required.

After entering the application name, start selecting the environment parameters in which the application is running, where you need to specify the minimum SDK. In this tutorial, we choose API 21: Android 5.0( Lollipop)

image7

The next step in the installation is to select the activity of the mobile device and specify the default layout for the application.

image8

The final stage opens the development tools to write the application code.

image9

3.4.3. Step 3-create an Android virtual appliance

Android virtual appliances are required to test Android applications. So before you start writing code, create an Android virtual appliance. Click the AVD Manager icon in the following figure to start the Android AVD manager.

image10

After clicking the virtual device icon, the default virtual device already in SDK is displayed. Click the “Create new Virtual device” button to create a virtual device.

image11

If the AVD is created successfully, this means that you are ready for Android application development. Click the close button in the upper right corner to close the window. After completing the last step, finally restart your machine. Before you start with the first Android example, you need to understand some concepts related to Android application development.

3.4.4. Hello World instance

In writing Hello World Before we code, we need to know the XML tag. Follow app > res > layout > activity_main.xml , open the file.

image12

The specific code is as follows:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
   android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
   android:paddingRight="@dimen/activity_horizontal_margin"
   android:paddingTop="@dimen/activity_vertical_margin"
   android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">

   <TextView android:text="@string/hello_world"
      android:layout_width="550dp"
      android:layout_height="wrap_content" />
</RelativeLayout>

Click Run > Run App to run the program, and the running result is as follows:

image13

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.