Development Environment configuration details, Development Environment details
To configure JDK environment variables, follow these steps:
1. My computer --> properties --> advanced --> environment variables.
2. configure system variables (S ):
A. Create JAVA_HOME
C: \ Program Files \ Java \ j2sdk1.5.0 (JDK installation path)
B. Separate them with the path.
% JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin
C. Create a user variable CLASSPATH
.; % JAVA_HOME % \ lib \ tools. jar
3. test whether the environment variable configuration is successful:
Start --> Run --> CMD
Press on the keyboard: JAVAC JAVA
The corresponding command appears, rather than the error message, indicating that the configuration is successful!
Or enter Java-version to check whether the version is consistent.
Adb environment Configuration
Win7 system, adb file path: D: \ Program Files \ adt-bundle-windows-x86-20140702 \ sdk \ platform-tools, android File Location: D: \ Program Files \ adt-bundle-windows-x86-20140702 \ sdk \ tools (your own sdk installation path)
1. Right-click the computer and choose advanced system Settings> environment variable> system variable center creation.
2. create the name adb (based on your naming conventions) and enter your adb location in the variable: D: \ Program Files \ adt-bundle-windows-x86-20140702 \ sdk \ platform-tools; D: \ Program Files \ adt-bundle-windows-x86-20140702 \ sdk \ platform-tools, click OK, save.
3. Find the Path variable in the system variable, click Edit, add "; % adb %" at the end, and save the modification.
4. Open the cmd window and enter adb. All adb commands are displayed.
When the adb port is occupied
1. Configure the adbserver port by yourself and use an uncommon value. (In the future, the adb port is the modified port number)
1. Define the ANDROID_ADB_SERVER_PORT value in the system environment variable. It is best to select a 5-digit port number (10000 ~ 65535.
2. In win, you need to add an ANDROID_ADB_SERVER_PORT to the environment variable. Set the value to the custom port.
3. in linux, export port $ ANDROID_ADB_SERVER_PORT = custom port.
2. Temporarily modify environment variables.
In Windows, enter "set ANDROID_ADB_SERVER_PORT = 54321" in cmd.
In linux, enter: export ANDROID_ADB_SERVER_PORT = 54321