- Install the jdk6.0 version to support installation of Eclipse
- Install Eclipse
- Install the jdk8.0 version, the JDK used in the actual development
- Configuring Java Environment variables
- Open shell Command Window (terminal)
- Detect The input java-version, view the JDK version, and the JDK can be seen when properly installed
- Next, really configure the environment variables
- Input sudo vim etc/profile, edit profile with VI
- Type I, enter insert mode, add Java path to the end of the file Java_home= "/library/java/javavirtualmachines/jdk1.8.0_75.jdk/contents/home/" Class_path = "$JAVA _home/lib" path= ".; $PATH: $JAVA _home/bin "
- Note the JDK installation path needs to be checked in advance
- When you are finished adding, press ESC to exit Insert mode and type wq! to save the exit file.
Here the Java environment variable is configured successfully, you can try "Hello World" in Eclipse to verify the installation is correct5. Next to configure the Android development environment
- Click Help in the menu -- Install New software?;
- Select work with: Add after ... → Enter Android plugin→ in the local option to find the ADT package in archive → Click ok→ to check the option in the name below.
Android environment built under Mac OS X