square - okhttp - OkHttpClient cannot be resolved
<p>Currently I am working on the <a href="https://teamtreehouse.com/library/build-a-weather-app/networking/making-an-http-get-request-with-okhttp" rel="noreferrer">Stormy Treehouse Android app</a>. I want to use the <a href="https://github.com/square/okhttp" rel="noreferrer">square OkHttpClient</a> but I get an error "cannot resolve symbol okhttp3" when importing the class : <code>import com.squareup.okhttp3.OkHttpClient;</code>. Replacing okhttp3 with okhttp does not fix the error. Thanks for you help.</p>

<h3>MainActivity.java</h3>

<pre><code>package com.trainerworkout.stormy;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

// cannot resolve symbol 'okhttp3'
import com.squareup.okhttp3.OkHttpClient;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        String apiKey = "f9d033c3cdeab16b95cecdeb6721a093";
        double latitude = 45.5124;
        double longitude = -73.5547;
        String forecastUrl = "https://api.forecast.io/forecast/" + apiKey + "/" + latitude + "," + longitude;
        // Cannot resolve symbol
        OkHttpClient client = new OkHttpClient();

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    } // onCreate()
} // MainActivity
</code></pre>

<h3>build.gradle (Module:app)</h3>

<pre><code>apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.trainerworkout.stormy"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.squareup.okhttp3:okhttp:3.0.1'
}
</code></pre>