Search code examples
androidmavenandroid-studiodependencies

What happens to the files downloaded by studio after adding a new maven and dependency?


Some times we need to add external repositories using maven and dependency. When we add the line of adding those libraries Android studio starts download some files from external sources. I want to know in which place/folder in the project the files are stored?

And if I remove the maven and dependency line then What happens with the files (the downloaded files)?? Is it deleted automatically with line removal?


Solution

  • They are downloaded in the .gradle directory. If you remove them they stay in the pc but not in the project anymore. The Final build won't have any resources from removed dependency.