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.