Android Studio is very slow to open the demo file

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.