We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Dolphin_2018
7 years agoExplorer | Level 4
Unable to migrate to API v2
Hi again,
I downloaded the new DropBox-SDK from here:
https://github.com/dropbox/dropbox-sdk-java
and I extracted it into an empty folder. I also tried several examples there, for example...
- 7 years ago
That's correct, the "DBRoulette" example and the dropbox-android-sdk-1.6.3 SDK are for API v1, and should no longer be used.
Anyway, these are commands that should be run in a terminal if you want to build the SDK from source. If you don't need to edit the source (you generally shouldn't), I recommend just changing the gradle line as described in my last post instead.
Dolphin_2018
Explorer | Level 4
Hi,
About the 'android:testOnly' error, sorry it was my mistake, I got this error for the "DBRoulette" example that was provided in the "dropbox-android-sdk-1.6.3.zip" file, I guess that it's the old v1 sdk, am I right?
OK so I did the following:
1. I extracted the "dropbox-sdk-java-master.zip" file into an empty folder.
2. I run the file:
..\DropboxApiV2\dropbox-sdk-java-master\gradlew.bat
What should it do? I didn't see anything change in the folder after running this file, it just opened a black cmd window for a very short time and then was closed.
3. I clicked "Import Project" in the Android Studio, and selected the folder:
D:\AndroidProjects\DropboxApiV2\dropbox-sdk-java-master\examples\android
4. I edited the "AndroidManifest.xml" and "strings.xml" files and replaced the "YOUR_APP_KEY_HERE" with my API key.
5. I selected from the Android Studio menu: Build ---> "Build project", and I get the following error:
Error:A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find com.dropbox.core:dropbox-core-sdk:0-SNAPSHOT.
Searched in the following locations:
file:/D:/Program Files/Android Studio/gradle/m2repository/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/maven-metadata.xml
file:/D:/Program Files/Android Studio/gradle/m2repository/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/dropbox-core-sdk-0-SNAPSHOT.pom
file:/D:/Program Files/Android Studio/gradle/m2repository/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/dropbox-core-sdk-0-SNAPSHOT.jar
https://jcenter.bintray.com/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/maven-metadata.xml
https://jcenter.bintray.com/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/dropbox-core-sdk-0-SNAPSHOT.pom
https://jcenter.bintray.com/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/dropbox-core-sdk-0-SNAPSHOT.jar
file:/C:/Users/UserName/.m2/repository/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/maven-metadata.xml
file:/C:/Users/UserName/.m2/repository/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/dropbox-core-sdk-0-SNAPSHOT.pom
file:/C:/Users/UserName/.m2/repository/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/dropbox-core-sdk-0-SNAPSHOT.jar
file:/D:/AndroidProjects/SdkNew/SAKI-sdk/extras/android/m2repository/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/maven-metadata.xml
file:/D:/AndroidProjects/SdkNew/SAKI-sdk/extras/android/m2repository/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/dropbox-core-sdk-0-SNAPSHOT.pom
file:/D:/AndroidProjects/SdkNew/SAKI-sdk/extras/android/m2repository/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/dropbox-core-sdk-0-SNAPSHOT.jar
file:/D:/AndroidProjects/SdkNew/SAKI-sdk/extras/google/m2repository/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/maven-metadata.xml
file:/D:/AndroidProjects/SdkNew/SAKI-sdk/extras/google/m2repository/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/dropbox-core-sdk-0-SNAPSHOT.pom
file:/D:/AndroidProjects/SdkNew/SAKI-sdk/extras/google/m2repository/com/dropbox/core/dropbox-core-sdk/0-SNAPSHOT/dropbox-core-sdk-0-SNAPSHOT.jar
Required by:
:android:unspecified
What should I do in order to solve this error ?
Thanks!
By the way I didn't understand the following:
git clone https://github.com/dropbox/dropbox-sdk-java.git
cd dropbox-sdk-java
./update-submodules # also do this after every "git checkout"
./gradlew build
What is it? is it something that I should run? or copy to somewhere? sorry but didn't understand that at all.
Greg-DB
7 years agoDropbox Staff
That's correct, the "DBRoulette" example and the dropbox-android-sdk-1.6.3 SDK are for API v1, and should no longer be used.
Anyway, these are commands that should be run in a terminal if you want to build the SDK from source. If you don't need to edit the source (you generally shouldn't), I recommend just changing the gradle line as described in my last post instead.
- Dolphin_20187 years agoExplorer | Level 4
Thanks very much!
Sorry somehow I missed that part, now it's working.
Last question, the instructions ask to run this file:
..\DropboxApiV2\dropbox-sdk-java-master\gradlew.bat
What does it do? I didn't see any change in the folder after running this file, it just opened a black cmd window for a very short time and then it was closed. Why do I have to run it?
Thanks.
- Greg-DB7 years agoDropbox StaffThat is a script for building/installing the SDK locally. It's not necessary if you switch to using a packaged version as above.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,876 PostsLatest Activity: 4 hours agoIf 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 or Facebook.
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!