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 ?
The Dropbox support website still links to the 2.1.2 SDK documenation, which of course still refers to OkHttp3Requestor.INSTANCE. If you are on to version 3.x.x now, shouldn't your website link to the 3.x.x documentation? (Start at www.dropbox.com/developers and click on Java, then the Documenation tab, and then "full documenation".)
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?