Build an android development environment and build an android Development Environment

Source: Internet
Author: User

Build an android development environment and build an android Development Environment

Development Environment Construction
1. JDK 64 32

2. Eclipse myEclipse, studio

3. Android SDK (software developer kit) 2.3.3 4.1.2 (Android SDK is required for Android Development)

Android SDK directory:

Add-ons: Reserved folders that store some advanced APIs
Build-tools: build tool
Docs: Documentation
Extras: some additional jar and acceleration tools
Platforms: Core jar of different sdk versions
Platforms-tools: tools used by the platform, appt packaging tool, and adb debugging tool
Sources: source code
Sysetm-images: System Image
Tools: tools used for development

Android project directory structure

Src: source code file
Gen: automatically generated R: A dictionary class
Android core jar dependency jar
Assets: stores some data files in the asset directory.
Bin: compiled
Libs: jar File
Res: resource file:
Drawable: Image
Layout: layout File
Menu: menu Layout
String: string, color, style
AndroidManifest: configuration file, package name, version information, running version, some components in the application, four components, similar to configuring servlet

ADB command exercise android debug bridge

Environment variables need to be configured to use ADB

Place the SDK \ adt-bundle-windows-x86_64_20140101 \ sdk \ platform-tools to configure Environment Variables

1. adb devices: view the android device connected to the current computer
2. adb kill-server end adb Connection Service
3. adb start-server enables adb Connection Service
4. adb pushes the file path of the computer to the mobile phone. adb pushes C: \ Users \ xuhaiyang \ Desktop \ 5.apk/sdcard/6.apk
5. adb pull mobile phone path: computer file path; adb pull/sdcard/6.apk C: \ Users \ xuhaiyang \ Desktop \ 5.apk

6. adb install-r apk file path;-r force install and install the application
7. adb uninstall application package name; uninstall Application
8. Switch the adb shell to the linux environment of the mobile phone; ls and Its linux commands,
9. adb shell; logcat; view the log information of the current mobile phone
10. When multiple devices are connected to the computer, you must directly add the-s device name after the adb command to use the adb command.

 

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.