I'm trying to compile an Android project in Android Studio which imports:
com.squareup.okhttp.HttpResponseCache
I'm getting an error "Cannot resolve symbol 'HttpResponseCache' "
I've tried adding in the gradle the following dependencies without success:
compile 'com.squareup.okhttp:okhttp-urlconnection:2.7.0'
compile 'com.squareup.okhttp:okhttp:2.7.0'
compile 'com.squareup:otto:1.3.8'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.squareup.okhttp3:okhttp:3.1.2'
Which library/s should I include to use HttpResponseCache?
According to the documentation, you should import
android.net.http
.