Dropbox SDK for Android: Cannot find AndroidAuthSession

I am trying to integrate dropbox into my Android project after the tutorial on the Dropbox website. I referenced all the libraries that were in the sdk / libs path, "Add External JARs" to the preferences for my project. But I get

AndroidAuthSession cannot be allowed for type

for this ad

private DropboxAPI<AndroidAuthSession> mDBApi; 

a mistake and I donโ€™t know why. These are my projects imported automatically using cmd + shift + O command:

 import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ListView; import com.dropbox.client2.DropboxAPI; import com.dropbox.client2.session.Session.AccessType; 

What am I missing?

EDIT: my libraries:
Libraries

+4
source share
3 answers

I am a bit confused, but the problem was the dropbox-java libraries being mis-entered instead of the correct dropbox-android libraries!

+3
source

Since this is Googleโ€™s main answer, when searching for this problem I will add that my problem was with this. :)

You need to download the SDK from the top of the Dropbox man page. For example, the one I needed was here: https://www.dropbox.com/developers/core/sdks/android

Just click the link where it says. Download the Android SDK - this is a special package containing Dropbox libraries. Full instructions are at the bottom of the page.

There are several other pages, such as this one, containing various useful Dropbox libraries.

Hope this helps someone!

0
source

"Since this is the main answer to Google" - there is no DB droid sdk in 2017. It is only java sdk and one is not enough - an example of Android. Here.

ps DB auth training somehow gets complicated, tired of their damaged documents

0
source

Source: https://habr.com/ru/post/1480078/


All Articles