Cant resolve setLevel on HttpLoggingInterceptor Retrofit2.0
<p>I am using Retrofit and I want to log my response and other things, I am using this <a href="https://futurestud.io/tutorials/retrofit-2-log-requests-and-responses" rel="noreferrer">https://futurestud.io/tutorials/retrofit-2-log-requests-and-responses</a> type but I am facing <strong>Cant resolve setLevel</strong> error</p>
<pre><code>HttpLoggingInterceptor logging = new HttpLoggingInterceptor();  

logging.setLevel(Level.BODY); // i am getting error on this

OkHttpClient.Builder httpClient = new OkHttpClient.Builder();  

httpClient.addInterceptor(logging); //this is also getting error
</code></pre>
<p>I am using this
<em>compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'</em> and Retrofit
<em>compile 'com.squareup.retrofit2:converter-gson:2.1.0'</em> dependency.</p>
<p><a href="https://i.stack.imgur.com/Q7igF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Q7igF.png" alt="This is where i got error" /></a></p>