I added a custom maven repository to build.gradle in Android Studio but the dependency is not being found
Maven repository and dependency
You will need to define the repository outside of buildscript. The buildscript configuration block only sets up the repositories and dependencies for the classpath of your build script but not your application.
buildscript