Android: can not resolve com.squareup.okhttp
<p>I want to use OkhttpClient from squareup in my app, so I added the following code to build.gradle:</p>

<pre><code> compile 'com.squareup.okhttp3:okhttp:3.0.1'
</code></pre>

<p>but java can't resolve it anyway:</p>

<p><a href="https://i.stack.imgur.com/rvixS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rvixS.png" alt="enter image description here"></a></p>

<p>What's the probblem here?</p>