Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build Android Development Environment

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the relevant knowledge of "how to build the Android development environment". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

1 、 JDK

(1) download JDK

JDK (Java Development Kit) is the core of the entire Java, including a series of things developed by Java, and the environment variables need to be configured after installation.

(2) JAVA_HOME

The installation path of JDK. This environment variable does not exist and needs to be created. After creation, you can use% JAVA_HOME% as the unified reference path. Its value is: the installation path of jdk on your computer.

My computer = > Properties = > Advanced system Settings = > Environment variables

(3) PATH

The PATH property already exists and can be edited directly. The function is to configure the path and simplify the input of the command, whose value is:% JAVA_HOME%bin.

(4) CLASSPATH

For the path to the JAVA class at compile time, note that two values are set here, and (.;) indicates that JVM searches the current directory first. Its value is:.;% JAVA_HOME%libtools.jar.

(5) after the configuration is completed, run the following command through cmd: if a return message appears in java-version,javac, the setting is successful.

Start menu = > right = > Command prompt

2 、 Eclipse

(1) download address

Just choose the Eclipse Standard version of http://www.eclipse.org/downloads/()

(2) installation

Eclipse is an IDE developed for Java and Android. Eclipse does not need to be installed, after unzipping the package, cut the eclipse folder to the place you want to install, and set your working directory when you open it.

3. Install Android SDK

(1) download address

Http://developer.android.com/sdk/index.html

Andorid SDK is an Android management development kit tool that provides development kits and tools for all levels of Android platforms. Note that because we are a stand-alone installation, not an integrated (integrated series of tools), we need to download SDK separately.

(2) installation

No installation is required to download android-sdk_r24.4.1-windows.zip. After unpacking the package, cut the eclipse folder to where you want to install it, and set your working directory when you open it.

(3) go to the installation directory and run SDK Manager. At first, there are no platforms and tools, so you need to download them back. The intranet of the company requires the use of an agent to download.

(4) enter the agent in Tools-> Options. After clicking Close, a list of many platforms will appear. Select and install Android Tools. In addition, it is recommended to download and install all of the above.

4 、 ADT

(1) start the Eclipse,Help menu-> Install New Software- > Add

Enter address: http://dl-ssl.google.com/android/eclipse/

(2) Select the items to be installed, complete the installation and restart the Next all the way. So the ADT is installed.

(3) configure ADT

Select Window-> Preferences, and you will see the Android setting item in the pop-up panel. Enter the installed SDK path, and the platform packages just installed in SDK will appear. Press OK to complete the configuration. At this point, the Android environment is set up and ready for the development of the Android project.

5. Create the first Android project

(1) Select File-> New-> Other-> Android-> Android Application Project.

(2) create a project

Enter the information required for the project

Application Name (name of the application)

Project Name (the name of the project in Eclipse)

Package Name (the name of the package that stores the Java class, which is essentially the path of the folder where it is stored. File separator, all the Java files we wrote will be placed in the src directory of the project. For example, com.tencent.helloworld means that the class is placed in the src/com/tencent/helloworld folder)

(3) all the way from Next to Finish, then our project will be completed.

(4) since the program runs on the simulator, we have not created a simulator yet, so we need to create one, and we can close it at the end of the creation.

(5) Click the triangular run button, and then select the simulator you just created, then the program starts to run, tip: it will be slow to start the simulator, so when the program is modified and needs to be run again, do not close the simulator, press the Home or return key on the simulator directly to exit APP, and then press run, then you can throw it again.

This is the end of "how to build the Android Development Environment". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report