Getting started with DropboxAPI, class not found

I am trying to use the Dropbox API for the first time, but I am getting this error when launching my application.

Caused by: java.lang.NoClassDefFoundError: com.dropbox.client2.session.Session$AccessType

I saw a guy with the same problem on Dropbox forums, and the solution was to rename the class path to libs / instead of lib /. I did this and did not work.

I get the error here:

final static private AccessType ACCESS_TYPE = AccessType.APP_FOLDER;

any ideas?

+3
source share
6 answers

My mistake, the problem was in classPath.

+1
source

This problem occurred when I imported Dropbox jars as follows: eclipse project menu → Build path → Configure build path → Libraries → Add external JARs;

, "libs" Project Explorer, "libs" "Import..." → File System. libs. .

+7

lib libs, , - , - apache-mime4j-0.6 lib, Dropbox on ? - Dropbox ? : api, , .

java.lang.NoClassDefFoundError: com.dropbox.client2.session.Session $AccessType

private AccessType ACCESS_TYPE = AccessType.APP_FOLDER;
0
source

Step to install jar file for dropbox.

u must add dropbox-android-Sdk.jar file as library.

Add to build path and then go to properties.

go in java build path and click order and export and click that dropbox-android-sdk.jar file.

u can also add jar and locate your dropbox-android-sdk.jar file and then ok.
0
source

Jobs at Eclipse (Luna). I can solve the error Project-> Properties-> Java Build Path-> Order And Export, and then check the box (in my case for Dropbox 1.6.3) two Dropbox jbox files, Then a normal clean project and launch follow.
This can be reproduced by removing check marks from the fields in the Order and Export dialog box.

0
source

Please check the libs project name, its correct name is libs. enter image description here

0
source

All Articles