Android Studio下载地址:http://developer.android.com/sdk/index.html
step1:
Before you set up Android Studio, be sure you have installed JDK 6 or higher (the JRE alone is not sufficient)—JDK 7 is required when developing for Android 5.0 and higher. To check if you have JDK installed (and which version), open a terminal and type
javac -version
. If the JDK is not available or the version is lower than 6, go download JDK
注解:
安装JDK后,如果在cmd中输入命令javac -version 提示不是内部命令,则需配置环境变量
路径:计算机(右键)——属性——更改设置——环境变量——新建(系统变量)
新建变量:
1.变量名:JAVA_HOME 变量值:D:\Program Files\Java\jdk1.7.0_71(JDK的安装路径,默认在C盘);
2.变量名:PATH 变量值:%JAVA_HOME%\bin;
3.变量名:CLASSPATH 变量值:.%JAVA_HOME%\lib(注意前面有个“.”,表示当前路径);