Android highlights 34: android studioimport project download gradle-x.x.x-all.zip,gradle2.2.1all.zip
Every time you open a github project, gradle is downloaded first. Each project has its own gradle build program, but it is really miserable to start a new project and download gradle again. So we can use the downloaded file to put it in the corresponding path and unzip it.
The configuration directory of gradle is in ~ /. Gradle.
View the contents in my directory:
~ /. Gradle $ du-sh * 46 M caches1.4M daemon1_m wrapper ~ /. Gradle/wrapper/dists $ lsgradle-1.12-all gradle-2.2.1-all
Each project has a corresponding directory here:
~ /. Gradle/wrapper/dists/gradle-2.2.1-all $ lsc64ydeuardnfqctvr1gm30w53 ~ /. Gradle/wrapper/dists/gradle-2.2.1-all $ ls c64ydeuardnfqctvr1gm30w53/gradle-2.2.1 gradle-2.2.1-all.zip gradle-2.2.1-all.zip.lck gradle-2.2.1-all.zip. OK
You only need to stop gradle when the AS project is opened. Decompress the downloaded gradle to the corresponding directory and restart the.