Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
swright1512
5 years agoExplorer | Level 3
okhttp not found, migrating to Android developer studio (gradle)
I have an application that i have not needed to update since moving to API v2 in 2017. Due to google enforcing a minimum targetSDK i have made modifications and the project now meets the target and ...
Greg-DB
Dropbox Community Moderator
5 years agoApologies, I should have pointed out OKHttp in particular is a bit of a special case here, since it's considered optional when using the SDK. I see you're trying to use the Android example app though, which does use OKHttp, so you'll want to include that dependency. There's a note about this here:
swright1512
5 years agoExplorer | Level 3
in my application i import the example and use DropboxClientFactory.getClient() etc....
import com.dropbox.core.examples.android.*;
I now have the following dependencies, I have tried it with or without { implementation 'com.squareup.okhttp3:okhttp:3.11.0' }
dependencies {
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.dropbox.core:dropbox-core-sdk:3.1.3'
api 'com.squareup.okhttp3:okhttp:3.11.0'
still getting the error.
cannot access OkHttClient class file for com.squareup.okhttp.OkHttpClient not found
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!