Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
changook
8 years agoExplorer | Level 3
SDK 3.0.3 DbxRequestConfig problem
Today I got a email about Asking update dropbox SDK from dropBox API team.
So I changed pom.xml like below.
(I'm a Java server developer.)
<!-- https://mvnrepository.com/artifact/com.dropbox.core/dropbox-core-sdk -->
<dependency>
<groupId>com.dropbox.core</groupId>
<artifactId>dropbox-core-sdk</artifactId>
<version>3.0.3</version>
</dependency>
And then I've met a compile error
"The type com.dropbox.core.DbxRequestConfig cannot be resolved. It is indirectly referenced from required .class"
at this code
DbxRequestConfig config = new DbxRequestConfig("myApp/1.0");
and "DbxException can not be resolved" error too.
but when I had import SDK 3.0.2 there is No compile Error.
What shall I do? Can I use 3.0.2 instead of 3.0.3 ?
I use only 4 methods what access to dropBox folder.
client.files().move( )
client.files().delete( )
client.files().uploadBuilder(path).uploadAndFinish( );
client.files().downloadBuilder(path).download( )
2 Replies
- Greg-DB8 years ago
Dropbox Community Moderator
You should use 3.0.3. You can find an example of using DbxRequestConfig with it here:
I'm not sure what's causing the DbxException issue off hand though. You can see an example of importing it here:
If you're still getting that though, please share the code and full error/output.
- changook8 years agoExplorer | Level 3
Hello.
Thank you for the response.
I think I found why.
In the eMail you sent me first, you gave me the link to page https://github.com/dropbox/dropbox-sdk-java/releases
In that page, size of 3.0.3 SDK jar is 2,411KB
But I didn’t download through that link, I have changed maven tag of pom.xml
https://mvnrepository.com/artifact/com.dropbox.core/dropbox-core-sdk/3.0.3
<dependency>
<groupId>com.dropbox.core</groupId>
<artifactId>dropbox-core-sdk</artifactId>
<version>3.0.3</version>
</dependency>
Today I have checked my local repository and found Different size 3.0.3 SDK jar.(4,573KB)
After delete and redownload 3.0.3 SDK from my local repository, compile ERROR what I said has gone.(newly downloaded jar is 2411KB)
And upload, download method works well.
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!