Is Android Studio slow? no!! You don't know her yet ...

Source: Internet
Author: User

I believe a lot of Android developers know that the choice of the IDE is basically the Eclipse and Google's official Android Studio. However, these two Ides have been used to

Android developers know that Android Studio is simply a monster that eats memory and is surprisingly slow. But in terms of functionality alone, there's no doubt that Android Studio is well-deserved

, and Google will abandon its support for Eclipse in the future. With such a brutal reality, we have no reason to choose Google's official Android Studio as our

Android development of the magic AH. However, the speed is so slow, really tangled!! Now, let's take a look at some of the slow questions ...


First, what are some of the reasons why Android Studio is slow? As you may know, Google's IDE was developed based on Gradle and integrates the current market

Mainstream of a variety of plugins. So, the main reason for the slow is probably the following two points: 1, too many plug-ins, 2, because the Gradle built with frequent access to the network, resulting in some
The speed of the network is not fast enough in the region, the reason for slow.


Well, know the reason, the solution will naturally come out, the following directly gives a solution:


One, will not be used to disable all plug-ins, the method is as follows:
Launch your Android Studio and select Menu File---Settings ... To open the configuration interface and find the Plugins configuration item in the left-hand IDE Settings field.
At this point, the appropriate plug-in options appear on the right, you can not use the option to check out, such as: CVS integration, Git integration, GitHub, Google Cloud Tools
For Android Studio, Google Login, Python, Subversion integration, Testng-j, and more. Click the Apply button at the bottom right of the box to make your configuration
Take effect, and then restart Android Studio as prompted. (with this configuration, your Studio speed is at least doubled!!) )


Second, for Gradle speed up, method is to let Gradle use Daemon (daemon) way to build (build) project, the method is as follows:
1. Create a file named Gradle.properties to the following directory:
· Windows 7 System---c:\users\<username>\.gradle\
· Linux System---/home/<username>/.gradle/
· MAC System---/users/<username>/.gradle/
Then add a line of configuration items to the file as follows:
Org.gradle.daemon=true

2, let Gradle do not always access the network, instead of the offline way to build, the method is as follows:
Launch your Android Studio and select Menu File---Settings ... To open the configuration interface, and then on the left Project Settings [Your_project_name] Bar
Locate the Gradle configuration item at this point, then the appropriate option appears on the right, and then find the Offline work option below the Global Gradle settings, and then remove the check box. Check
Then click the Apply button at the bottom right to make your configuration work, and then restart Android Studio as prompted. (After this configuration, when you build the project again, the speed is at least
Double boost!! )

Is Android Studio slow? no!! You don't know her yet ...

Related Article

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.