Disclaimer: I put all the installation in the D:\Work\Android\, please change according to the actual situation. I am also a beginner, if you have installation problems, you can contact me by email: [Email protected]
One, install "Jdk-8u40-windows-i586.exe", and configure the Java environment
Computer-Properties-Advanced system Settings-advanced-environment variables
Java_home
D:\Work\Android\Java\jdk1.8.0_45\
CLASSPATH
.; %java_home%/lib/dt.jar;%java_home%/lib/tools.jar
Android_sdk_home
D:\Work\Android\android-sdk
Path
C:\programdata\oracle\java\javapath;%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;%systemroot %\system32\windowspowershell\v1.0\;%java_home%/bin;%java_home%/jre/bin; C:\DEV\gradle-2.3\bin
Second, install "Gradle-2.3-all.zip", and configure the Gradle environment, see step One
Third, install "Android-studio.exe", and configure the Android studio environment, see Step One
#修改启动文件
D:\Work\Android\Android studio\bin\idea.properties
Last Added
Disable.android.first.run=true
After running Android Studio, set the Setting-gradle in the
Offline work
Service Directory path:d:/work/android/gradle-2.3
Gradle VM options:-xmx512m
After you run Android studio, set up in project structure
SDK Location:d:\work\android\android-sdk
JDK location:d:\work\android\java\jdk1.8.0_45
Iv. Install "Installer_r24.1.2-windows.exe" and configure the Android SDK environment, see Step One
Launch SDK Manager to download relevant files
If the SDK Manager cannot be started, modify the D:\Work\Android\android-sdk\tools\android.bat
REM Check we have a valid Java.exe in the path.
Set java_exe=
Call Lib\find_java.bat
If not defined Java_exe goto:eof
----------------modified into----------------
REM Check we have a valid Java.exe in the path.
Set java_exe= "D:\Work\Android\Java\jdk1.8.0_40\bin\java.exe"
Android Studio Installation Instructions