Every time i try to open an existing project that i downloaded, i get the syncing message and it
keep trying to download another version of gradle
i want to open projects without wasting my time
so, how can i open a project that i have downloaded and just open it without focring me to download something and just waste my time?
Thanks in advance
Before opening your project go to \\ AndroidStudioProjects \\ YourProject \\ gradle \\ wrapper
Open gradle-wrapper.properties
file with any Text Editor, change this line :
distributionUrl=https\://services.gradle.org/distributions/gradle-x.x.x-all.zip
To
distributionUrl=https\://services.gradle.org/distributions/gradle-Y.Y.Y-all.zip
YYY means the version of Gradle that you already downloaded it before, for example :
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
Click CTRL + S to save your changes, now open your project normally
if the issue still present, make sure that the folder of Gradle is not being deleted by any software you installed in your pc.
to check for the downloaded Gradle folder go to :
\\ AndroidStudioProjects \\ YourProject \\ .gradle
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.