Forcibly clear gradle dependency cache and gradle Cache

Source: Internet
Author: User

Forcibly clear gradle dependency cache and gradle Cache

Today, my colleague mistakenly uploaded a database and deleted it again...

I just handed down the library he uploaded... Then the project always reports an error, clean... Re-compile... Delete the build file .... All do not use =

Several people have studied it for a long time and can only guess that it is a cache problem... It is useless to delete all the project caches .... It should be the problem of gradle caching...

There are a lot of gradle versions on my computer, and the path is hard to find... It's really hard to do ....

After work, my colleagues ran all .... You can only search for it by yourself !!!

Looking back, gradle caching is quite common. Colleagues should have blogs... Hurry up to Baidu...

Indeed, there are many related blogs on the Internet. After reading the first article, I saw the solution ....

It is too difficult to find a path. It is more reliable to force remote pull of dependencies ....

You can use the command line to forcibly pull dependencies...

Windows: gradlew build -- refresh-dependencies Mac:./gradlew build -- refresh-dependencies

After the command is completed, wait for the AS to execute the command and re-compile it. The project runs normally !!!

Remember the sadness of looking for a path without a brain ~~~

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.