Android Learning record one--installation environment

Source: Internet
Author: User

Always wanted to touch this piece, but it has been delayed until now. Looking for a few back to the information, looking for a few back to install the package, these two days by some Thorn (gong) (Zi), decided to calm down, a little start to eat.

Contact with C # is starting from the layman, not any programming foundation, so touch Android is also very slow.

1. The development tools need to be found first. Just like the basic language of C#winform with Visualstudio,android is Java, the development tool naturally prefers eclipse. This link took some detours and finally found the Android official online ADT (Android development Tools).

Website Introduction:

It's a full Java IDE with advanced features to help you build, test, debug, and package your Android APPS

*. Missing a link, ADT, the process is not complicated, Baidu + operation, very smooth.

2. Install the appropriate SDK. Android has grown to more than 10 versions now, from 1.6 to 4.4, but for developers, unless it is necessary to choose the latest version. for compatibility, it is common to use low-version development so that there is better usability.

In the above-installed ADT, open "Windows", "Android SDK Manager", the box will be listed in a list, there are various installed or not installed SDK. Tick the SDK that needs to be installed, click "Install x Packages ..." Below and select "Accept License" to install.

Tip: When installing these SDKs in China, it is possible to encounter a wall. See here for the treatment of wall.

3. Install the simulator. Although most mobile phones now android/iso the system, they still find it easier to install the Android emulator.

Open "Windows", "Android Virtual Device Manager", create a new simulator inside.

tip: When installing the simulator, the Memory options where the RAM is set to a value less than 1024, for example 512. At the beginning of contact, set 1024, and then pop up a "Emulator-arm.exe has stopped working " error, after the value is small, the problem solved. However, it seems that this error may be caused by other places, the specific situation to treat it. No matter when, Baidu is the best helper. O (∩_∩) o

4. Simulator acceleration. A new Android project tried, but can walk through, but the speed of the simulator is too bad, uncle can endure, aunt can't endure-Baidu a bit, said is installed HAXM can improve the speed of the simulator to match the real machine. This has to be.

A. Install an Android version with the Intel x86 Atom System image in the SDK manager first (looks like 4.0.3 or more versions are available)

B. The bottom extras folder of the SDK manager the last Intel x86 Emulator Accelerator (HAXM ...), install it.

C. Open the "\sdk\extras\intel\hardware_accelerated_execution_manager" in the folder where ADT is located, find the Intelhaxm.exe inside, double-click Install

D. Return to the emulator in step 3 of the edit, and first modify the target to the Android version installed in step a above (otherwise you cannot edit the Cpu/abi optional dropdown box). Then change the Cpu/abi drop-down option to Intel Atom (X86), which, when running the program with this emulator, will be much faster than before.

Tips:

As can be seen from the above steps, different Android versions of the simulator need to be installed multiple times intelhaxm.exe.

In addition, the process of installing intelhaxm.exe in my case is very tortuous. The main installation of this program requires the corresponding CPU and motherboard settings. CPU if Intel, there are technical parameters: Virtual Tecenology (vt-x) and execute Disable Bit (XD), while the motherboard setup (BIOS), both options are enabled to install successfully.

To this, have not written a code, just installed the development of the environment, it has taken me nearly a day, but after the completion of this, in the simulator to see the Hello World, the feeling of the tall.

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.