Every time I build my project android studio build system download 'maven-metadata.xml'. As a result, it takes a very long time to build the project. Can anyone suggest me is there any way to fix this? Below is the picture of the problem.
Maven does this because your dependency is in a SNAPSHOT version and maven has no way to detect any changes made to that snapshot version in the repository. Release your artifact and change the version in pom. xml to that version and maven will no longer fetch the metadata file.
The file at https://repo1.maven.org/maven2/com/octopus/randomquotes/maven-metadata.xml is created when a Maven artifact is published. It lists various details about the artifacts that have been published, like version number and the dates when the artifact was last updated.
In Gradle Tool window (View -> Tool Windows -> Gradle), activate Toggle Offline Mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With