Is Android Studio slow? No !! You still don't know her... androidstudio
I believe many Android Developers know that the available IDE is basically Eclipse and Google's official Android Studio. However, these two ides have been used
Android Studio is a memory-consuming monster, and it is surprisingly slow. However, Android Studio is worthy of its unique functionality.
And Google will give up its support for Eclipse in the future. In the face of such a cruel reality, we have no reason not to choose Google's official Android Studio as our
The magic of Android development. However, the speed is so slow, it is really tangled !! Next, let's summarize the slow issue ···
First, analyze why Android Studio is slow? As you may know, Google's IDE is developed based on Gradle and integrated with the current market.
Various mainstream plug-ins. Therefore, the main cause of slow performance is as follows: 1. Too many plug-ins are not available; 2. frequent access to the network during Gradle Construction
The reason for the slow speed in areas with insufficient network speed.
Well, if you know the reason, the solution will come out naturally. The following describes the solution:
1. Disable all unused plug-ins as follows:
Start your Android Studio, select File> Settings... from the menu to open the configuration page, and find the Plugins configuration in the left-side IDE Settings column,
The corresponding plug-in options are displayed on the right side, and you can remove unused options, such as CVS Integration, Git Integration, GitHub, and Google Cloud Tools.
For Android Studio, Google Login, Python, Subversion Integration, and TestNG-J. Select and click Apply in the lower-right corner to enable your configuration
Take effect. Restart Android Studio as prompted. (After this configuration, your Studio speed will be at least doubled !!)
2. To speed up Gradle, use daemon (daemon process) to build (build) projects. The method is as follows:
1. Create a file named gradle. properties to the following directory:
· Windows 7 --- C: \ Users \ <username> \. gradle \
· Linux ---/home/<username>/. gradle/
· Mac system ---/Users/<username>/. gradle/
Add a line of configuration items to the file as follows:
Org. gradle. daemon = true
2. Do not allow Gradle to access the network all the time. Instead, use the offline method to build it. The method is as follows:
Start your Android Studio and select File> Settings... to open the configuration page. Then, in the Project Settings [your_project_name] column on the left
The corresponding options appear on the right side of the Gradle configuration item, find the Offline work option under Global Gradle settings, and deselect the check box. Select
Click the Apply button in the lower-right corner to make your configuration take effect. Then, restart Android Studio as prompted. (After this configuration, the speed is at least
Doubled !!)