Getting started with Android development for Windows (1)

Source: Internet
Author: User

Seeing extensive publicity on csdn and the Internet, I decided to get involved in the Android mobile development field based on my existing Java experience. I found the relevant learning materials one morning, later, I downloaded the Android app development secrets ebook on the Internet, which has been uploaded to my resources. If you are interested, you can download the ebook.

Because Google has recently closed Open Source Access to android3, the android open website cannot be used, and Android JDK and ADT cannot be downloaded from the official website, you can search for and download it from a dog. Of course, because it is based on Java, We need to download JDK or later and eclipse3 or later. The specific address is not mentioned, because I use eclipse, so I didn't download it. You searched a lot on the Internet.

1. The following describes the configuration of the JDK and Java environment. If the configuration is not good, it cannot be used normally.

(1) install the downloaded JDK installation package to the system drive letter (recommended). You do not need to perform any special operations until the next step is completed.
(2) installation is complete to start the MS-DOS window, enter the command "Java-version", the emergence of Java version information, indicating that the installation is successful, if the error is to configure the system variables and environment variables, generally, there will be no problems. If you have any problems, you can use Baidu to provide graphic configuration tutorials.
(3) decompress the downloaded eclipse package to a directory, double-click the package, and specify the space (which can be customized) of the program. This completes the installation and configuration of the Java environment.

2. Install the android SDK:
(1) decompress the SDK package and run SDK setup.exe. If you encounter "failed to fetch URL... ", you need to change the HTTP Method to https, select" Settings "on the left side of the" android SDK and AVD manager "window, and select" Force https ://... "option, click" Save & apply "and re-run the installer.
(2) Click "available packages" and select the API version, USB driver, and SDK document to install. For test convenience, select all.
(3) Click "Install selected" to install the selected software package. In the displayed dialog box, select "accept all" and "Install accepted, start to download the selected installation package.

3. Configure the android SDK:
(1) You need to add the Tools Folder path in the android SDK installation directory to the environment variables for use. The operations are as follows:
Right-click "my computer"> "properties"> "advanced"> "environment variables" to open the environment variables dialog box.
(2) Select the path option in "system variables" and click "edit" to add the path of the Tools Folder under the android SDK installation folder to the PATH variable. Ensure that the original project is maintained, separate them. Click OK to exit and complete the configuration.
(3) Run CMD and enter the "Android-help" command. If the output result shows that the configuration is correct.

4. install and configure ADT
(1) Run eclipse3.4, select help> Software Updates..., and click the available software tab in the pop-up window.
(2) Click Add site..., then click archive..., select the prepared ADT (no need to decompress) Installation File, and return.
(3) In the returned Configuration window, the plug-ins to be added will be listed. For routine projects, click Install... as prompted.
(4) In the review license dialog box, select I accept the license and click Finish. After the installation is complete, restart eclipse to view the android options in the toolbar and menu bar.
(5) Open the eclipse menu "Windows", select "Preferences"> "android", set the SDK location on the right, click "Browse", and select the android SDK installation path, click OK;
(6) Click the "file" menu and select "new" -- "project...". The "android project" option is displayed, indicating that the installation and configuration are successful and can be developed for Android.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.