Android Studio Open demo file very slow, because if there is no corresponding Gradle package, then will download from Google Gradle package, there is a wall so very slow, hundreds of m of things
The following changes the file so that the demo can be opened quickly
1. Create a new project and click on file-project Structure
2.
For example, these parameters
Android Plugin Version: (1.5.0)
Gradle Version: (2.8)
Compile SDK Version: (23)
Build Tools Version: (23.0.2)
3. Modify the file for the demo project
Xxx-project/.idea/gradle.xml files: Adding or modifying<option name="gradleHome" value="前面的GradleHome参数" /> //我没有这个文件...没有就好像不用修改了
Xxx-project/gradle/wrapper/gradle-wrapper.properties file: distributionUrl=https\://services.gradle.org/distributions/gradle
-Front ofgradleVersion-all.zip
Xxx-project/build.gradle file: classpath ‘com.android.tools.build:gradle:
front Android Plugin Version‘
(This is the entire project configuration)
Xxx-project/build.gradle files: Modifications Compile SDK Version
and Build Tools Version
parameters. (This is a single module configuration, each module in project needs to be modified)
4. Seconds to open the demo ..... Finish
Android Studio is very slow to open the demo file