Start the android development journey

Source: Internet
Author: User

Today, I set up the android development environment. I had a little knowledge about Java basics and JDK and eclipse tools, so the installation process was still smooth.

I will not detail the tutorials that have been built in many environments on the Internet. I will simply record my operation steps.

1. Download and install JDK

2. Download and install eclipse. I chose the pulsar for mobile developers version.

3. Download the android SDK (which needs to be turned over the wall). Download the domestic image. I chose to install it online. SDK setup tool --- automatic upgrade tool for earlier SDK versions

Select installation Interface

Folder failed to be renamed or moved is prompted during installation. I searched for it online.

Reference Internet:

1. Copy the tools directory to a new directory named "tools-Copy". In this case, the android-SDK-Windows directory contains two directories: Tools and tools-copy.
2. run Android. bat in the tools-copy directory to update all normally.
3. Close the SDK,
4. Run the SDK setup.exe In the Android-SDK-Windows directory.

4. Create an android virtual machine.

Some problems also occur during creation, always prompting

4.1.error: Unknown Virtual Device Name

Reference Internet:

The error: Unknown Virtual Device name is generally caused by a file path reference error. For example, you can set a user file to drive F in Vista. In this way, when you use eclipse or create an android emulator from the command line, the corresponding file is placed to "F: \ Users \ <username> \. android ", while the program is still running from" C: \ Users \ <username> \. android "to find the corresponding configuration file, resulting in the above error.

• Solution 1:
Set "F: \ Users \ <username> \. copy the file under android to c: \ Users \ <username> \. android "below can solve this problem, but such a solution has an obvious drawback, that is, if there is a new
Create an AVD and copy it again.

• Solution 2:
Create a new variable named "android_sdk_home" in the system environment variable (note that this variable name cannot be changed, but it can only be this name !), Change the variable value to the location where you want to place the ". Android" folder of AVD, for example, "F: \ androidemulator"

4.2.emulator: Error: No search paths found in this AVD's configuration.

The original Android configuration path does not support Chinese characters. Change the android_sdk_home path to English and OK.

Click Start. After more than three minutes of waiting, the virtual machine ran up...

5. Install the eclipse ADT (Android development tools) plug-in.

5.1 open eclipse, click Help-> install new software... add repository, and enter

Name: Android
Location: https://dl-ssl.google.com/android/eclipse/

 

Complete the settings step by step in the Wizard. Restart eclipse

 

6. Start creating the first Android project.

Directory structure (the specific division is not very familiar yet ). Several controls are dragged on Main. XML (it is said that this layout tool is good and you have time to study it)

Run the command to check the effect.

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.