Android SDK First Experience

Source: Internet
Author: User
Tags android sdk manager

Environment configuration

Prerequisites:

Install Java (about how to install, not much to say, self-Baidu. There are many tutorials)

Android Monkey is a gadget based on the Android SDK. So if you want to use Android Monkey, you first have to install the Android SDK.

1. First download the corresponding version of the Android SDK. Or you can download Android studio directly (Android SDK belongs to Android Studio, personal understanding is equivalent to the parent-to-child relationship. )

2. After extracting the downloaded zip source package, set the appropriate environment variables:

Variable name: android_home

Variable Value: E:\Android-SDK\android-sdk-windows

The PATH environment variable is then appended at the end;%android_home%\tools;%android_home%\platform-tools;

3. After setting the environment variable, CTRL + R opens a command line and enters ADB. See if the following information is listed. If any, the configuration is successful.

4. After configuring the Android SDK, we need to go to the corresponding Android_home path, double-click Run SDK Manager, go to the Android SDK Manager console interface.

The first time this console interface is opened, the page will default to the most basic configuration required to use this tool, and if there is no special need, simply click the Install Packages button.         The installation process downloads some resources, so you'll need to wait a while. (I just started unclear so, checked the Android 7.1 to 4.4 of all versions, directly resulting in the download of the majority of days have not been downloaded, and then look at the discovery of downloaded resources actually have a good dozens of g of the big. If it's just a personal study, recommend Android 5.0.1 and 4.4.2 version)

5. After all the required resources have been installed, return to the Android_home path and double click on the AVD Manager to open the console interface of the Android Virtual Device (AVD) Manager and start creating our first AVD.

AVD name: Take a meaningful name for yourself.

Device: Choose your own as needed.

Target: After the normal selection of the device will automatically select the corresponding options, if not special needs, it is recommended not to change. Rookie like me, after the first random choice, it may lead to the creation of the AVD.

Cpu/abi: This piece of personal thought is the most obscure one, if you do not understand this piece, there is no choice. The wrong choice may result in the creation of an AVD. For the first time contact, it is recommended to choose Arm (ARMEABI-V7A), this personal understanding should be the minimum configuration requirements.

If you choose Intel's system image you also need an additional HAXM accelerator, you need to manually install it yourself. The SDK manager's extras is not compatible, and the first time you enter the SDK manager, it is not checked by default. After installation, you can use Intel's system image, and the virtual machine after the creation runs quite smoothly, equivalent to the real machine. Otherwise the card will not work. Executing the monkey command causes the ANR.

Skin:skin with dynamic hardware controls

Front Camera:none

Back Camera:none.

6. Once you have created the AVD, click Start to open the Android Emulator (virtual machine).

7. Wait for Android emulator to start, then open a terminal. Input: ADB devices. See the information below to show that you are connected to an Android virtual machine.

8. Next, we continue to enter: adb shell. Enter the shell console interface. Input: LS data/data. View the application package inside.

9. Last input: Monkey-p package.name-v 500. We'll be able to execute our first monkey command.

Android SDK First Experience

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.