Android studio compilation solve slow

Android studio compiled a newly installed app first time will be very slow very slow, like this
Here Insert Picture Description
has been transferred has been transferred, because the app is gradle compile time to compile, you need to download the necessary stuff, down from outside the network, it will be very slow, the solution is to switch to domestic mirroring can be resolved. As long as the download Well, since you no longer switched.
Steps are as follows:

1. Switch to the project engineering

2. Open build.gradle

Here Insert Picture Description

3. Add the domestic image as

Here Insert Picture Description
Add the code below

maven{ url = "http://maven.aliyun.com/nexus/content/groups/public/" }

Here Insert Picture Description

Published 33 original articles · won praise 21 · views 8918

Guess you like

Origin blog.csdn.net/qq_39400113/article/details/104992638