Android Development Learning Log (1)

Source: Internet
Author: User

Preface

Because I want to develop a mobile platform application, I began to contact and learn about Android development. When writing this log, I am still a beginner and have no development experience on any mobile platform. Now I don't even know how to write Hello world. In fact, I don't have the habit of writing logs. However, because my girlfriend also wants to learn Android development, I plan to organize a series of learning tutorials for her. I hope I can stick to it myself, I also hope my favorite baby will give me support. In addition, if you find anything wrong with my understanding, please criticize and correct it.

 

I. Environment Construction

OS: Windows 7 Ultimate x64;

Eclipse 4.2.0 Juno x64;: http://www.eclipse.org/downloads/ casually choose a good, 64-bit system should choose 64-bit eclipse.

Jdk-6u33-windows-x64;: http://www.oracle.com/technetwork/java/javase/downloads/jdk6-downloads-1637591.html if eclipse is 64-bit, then JDK also need to download 64-bit, or eclipse cannot recognize JDK.

Decompress eclipse to any directory. For example, the author's directory is: G: \ Android \ eclipse. Eclipse does not need to be installed. After decompression, you can use it. Of course, JDK must be installed before use, otherwise, eclipse cannot be started. JDK can use the default path or custom installation path, but the path cannot contain Chinese characters. After JDK is installed, you do not need to configure environment variables (except for JDK without installation ).

Then Android SDK: http://dl.google.com/android/android-sdk_r20.0.3-windows.zip this is also free of installation version, extract it to use. The author Directory: G: \ Android \ android-sdk_r20.0.1-windows (the author posted is the latest, I have downloaded before, so the version number is different ).

After installing the androiddevelopment plug-in for eclipse, run eclipse.exe under the eclipseextract directory. For the first time, you need to set the workspace. The author's workspace directory is G: \ Android \ workspace. After the splash window is closed, eclipse displays the main interface and selects the following directory: Help>, for example:

 

Click the Add button on the right to bring up the following window:

Name can be entered casually: for example, enter Android, Location enter the following url: https://dl-ssl.google.com/android/eclipse/ (if an error occurs, please change https to http)

Click OK. The following page is displayed:

This NDK is related to the development of Android platforms C and C ++, and I am not very familiar with it here. Click Next, Next or Next, and then select I accept the terms of the license agreements. Click finish to install the plug-in. I have installed the plug-in, the following two figures are from the Network (http://hi.baidu.com/wlj1013/item/3e6080351168b9302f0f815c)

After the installation is complete, the following page appears:

Click Yes to restart Eclipse.

 

After the restart, configure the Android SDK, select Window> Preferences, and open the following location:

Click Browser to select the Android SDK directory we decompressed before, the author's directory is: G: \ Android \ android-sdk_r20.0.1-windows \ android-sdk-windows. Click Apply, OK.

Then click the icon:

As shown in:

Because I have downloaded it ...... So here Install packages is gray. At the beginning, information will be loaded from the network. Wait a moment. After the progress bar below is loaded, the rectangle button on the right will become gray. Then, click Install packages, the SDK is automatically downloaded and installed. The latest version 4.1 is used by default. You can also select the required components from the checkbox as needed. This process takes some time.

After the download and installation are complete, click the following icon:

Open the following window:

Click new to create a new virtual machine, as shown below:

Name customization: for example, MyMobile. Target is selected from the drop-down list. For example, Android 4.1 and SD Card are memory cards. Set them as needed. Click Create AVD below to Create a virtual machine. Let's run it:

Select the virtual machine in the list, click the start button on the right, and click launch next to the screen to wait for the Virtual Machine to start.

The virtual device will automatically start up and wait for it to start.

Come here today. I 've been working overtime recently and I can't help it anymore.

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.