 <p>Gradle build system must resolve 'com.squareup.dagger:dagger:1.2.2' from somewhere.</p> <p>In your case, looks you miss the following configuration in your gradle file.</p> <pre><code>repositories { mavenCentral() } </code></pre> <p>Then gradle will try to resolve the dependency from MavenCentral.</p> <p>Of course, you can specify your own repository like this.</p> <pre><code>repositories { maven { url "http://repo.mycompany.com/maven2" } } </code></pre>