Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Robert S.138
9 years agoHelpful | Level 7
OkHttp3Requestor.INSTANCE compile error after updating Java SDK to 3.0.3
This Android code was working fine with dropbox-core-sdk-2.1.1 but when I updated to dropbox-core-3.0.3, this code produced a compile error: DbxRequestConfig.Builder a = DbxRequestConfig.newBuild...
Robert S.138
9 years agoHelpful | Level 7
OK, I got this to work, but I don't really understand what is going on, so if anyone can verify that this is right, I would appreciate it. I replaced:
DbxRequestConfig.Builder a = DbxRequestConfig.newBuilder("TuneLabPianoTuner/2.3");
DbxRequestConfig.Builder b = a.withHttpRequestor(OkHttp3Requestor.INSTANCE);
DbxRequestConfig requestConfig = b.build();
sDbxClient = new DbxClientV2(requestConfig, Main.DBaccessToken);
with this code:
DbxRequestConfig.Builder b = DbxRequestConfig.newBuilder("TuneLabPianoTuner/2.3");
DbxRequestConfig requestConfig = b.build();
sDbxClient = new DbxClientV2(requestConfig, Main.DBaccessToken);
and avoided the whole issue with OkHttp2Requestor.INSTANCE. I briefly tested my application, and it did indeed access my dropbox files. So what, if anything, am I missing by not augementing my DbxRequestionConfig.Builder ?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!