android studio allprojects > repositories code example Example: android maven dependency maven { url 'repo1.maven.org/maven2'; }