Android: starts from scratch and starts from scratch
I. JDK (no installation required)
1. Download the appropriate jdk
2. Configure the environment variable to add a system edge = Variable
JAVA_HOME = D: \ Java \ jdk1.8.0 _ 91
CLASSPATH =.; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar; % JAVA_HOME % \ jre \ lib \ rt. jar
PATH = D: \ Java \ jdk1.8.0 _ 91 \ bin)
3. Verification
Run java-version in any directory
2. Run eclipse ADT (no installation required)
1. Configure an environment variable ANDROID_HOME = D: \ Java \ adt-bundle-windows-x86_64-20140702 \ sdk
2.run eclipse.exe directly. 3. Download the simulator (the haima simulator is used), open the simulator, debug it, open eclipse, switch to the editing view, and select DDMS
If the connection is successful, check
4. Create a project (helloWorld)
1. Select file> new> Android application project to create an android project, and then specify the relevant project information and configuration (for example)
2. Click next until, as shown in figure
After the project is finished.
5. Android project directory structure
Src: source code
Gen: R file (pointer to a java resource file)
Bin: apk File
Assets: asset directory
Libs: Additional jar packages
Drawable: stores Android image resources.
Layout: stores the Android layout,
Values: String
Android configuration file: the four components (Activity broadCastReceiver service ContentProvider) in Android must be configured in the configuration file.