Gradle fails to find the dependency Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Gradle fails to find the dependency without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I have used this tool to publish my library to sonatype https://github.com/chrisbanes/gradle-mvn-push. I can see that it’s uploaded and signed correctly.

but when I try to add the dependency to another project gradle can’t find it

here is what i get: Error:Failed to find: com.github.mohd-bh:app:1.0.0

though I already included mavenCentral() in repositories block.

Answer

You can use this link http://search.maven.org/ to search the maven repository.

When I searched for your library, I could not find it.

Sonatype requires that you push your library from the staging server to the release server by using their website tool. You may not have done that which would result in the library not being published to maven.

We are here to answer your question about Gradle fails to find the dependency - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji