<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: v2 API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/274831#M16391</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662139"&gt;@Andre_LB&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again this appears to be a more generic Android development question and not a Dropbox API specific question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest you take a good look at the sample Android application included in the Java SDK github repository:&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android/src/main/java/com/dropbox/core/examples/android" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android/src/main/java/com/dropbox/core/examples/android&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically, you are creating the client within your hasToken() method which seems a dubious place to perform such an action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest following the flow of the sample application carefully and paying attention to the following class:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxClientFactory.java" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxClientFactory.java&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And when/where it gets invoked:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/search?utf8=%E2%9C%93&amp;amp;q=DropboxClientFactory&amp;amp;type=" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/search?utf8=%E2%9C%93&amp;amp;q=DropboxClientFactory&amp;amp;type=&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
    <pubDate>Wed, 02 May 2018 22:41:14 GMT</pubDate>
    <dc:creator>chirstius</dc:creator>
    <dc:date>2018-05-02T22:41:14Z</dc:date>
    <item>
      <title>v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/273494#M16270</link>
      <description>&lt;P&gt;Hi Dropbox Team,&lt;/P&gt;&lt;P&gt;I am trying, using Dropbox API, to access my files in Dropbox.&lt;BR /&gt;I have already done it with Dropbox API v1 and now I would like to do it with v2.&lt;BR /&gt;For this reason, I performed as following:-&lt;/P&gt;&lt;P&gt;1) As suggested, I downloaded the new DropBox-SDK from here:-&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) I run the file:&lt;BR /&gt;..\DropboxApiV2\dropbox-sdk-java-master\gradlew.bat&lt;/P&gt;&lt;P&gt;3) I executed "Import Project" in the Android Studio, and selected the folder:&lt;BR /&gt;..\dropbox-sdk-java-master\examples\android&lt;/P&gt;&lt;P&gt;4) I added the following line in the build.gradle file in "dependencies" section:-&lt;BR /&gt;compile 'com.dropbox.core:dropbox-core-sdk:3.0.6'&lt;/P&gt;&lt;P&gt;5) But I have the following error:-&lt;BR /&gt;Unable to load class 'org.grangle.loading.StyledTextOutput'&lt;/P&gt;&lt;P&gt;Alsothe following lines are marked in red:-&lt;BR /&gt;compile 'com.android.support:appcompat-v7:23.1.1'&lt;BR /&gt;compile 'com.android.support:design:23.1.1'&lt;BR /&gt;compile 'com.android.support:recyclerview-v7:23.1.1'&lt;/P&gt;&lt;P&gt;6) I have not yet updated "YOUR_APP_KEY_HERE" in AndroidManifest.xml with my app_key. For obtaining the app_key, in Dropbox Console, when I create the app_key&lt;BR /&gt;which name I have to give? Maybe "UserActivity"?&lt;BR /&gt;&lt;BR /&gt;I need your help!&lt;BR /&gt;Thank you very much, in advance.&lt;BR /&gt;Andre&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:13:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/273494#M16270</guid>
      <dc:creator>Andre_LB</dc:creator>
      <dc:date>2019-05-29T09:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/273568#M16276</link>
      <description>&lt;P&gt;If you're just trying to run the Android example app as is, you don't need to run&amp;nbsp;gradlew.bat. You&amp;nbsp;can just switch the&amp;nbsp;Dropbox dependency to "compile 'com.dropbox.core:dropbox-core-sdk:3.0.6'" as you mentioned. (You should use that instead of the existing "compile group: 'com.dropbox.core', name: 'dropbox-core-sdk', version: '0-SNAPSHOT', changing: true".)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I don't see a reference to "org.grangle.loading.StyledTextOutput" in the Android example app. Is that the exact output you're getting?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;com.android.support dependencies are referencing the &lt;A href="https://developer.android.com/topic/libraries/support-library/setup.html" target="_self"&gt;Android support library&lt;/A&gt;. That should already be available, but refer to the Android documentation there if not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, when registering your API app on the&amp;nbsp;Dropbox App Console, you should supply the name of your app that should be presented to your users, e.g., what they would see on the Google Play Store (not "UserActivity").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 16:09:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/273568#M16276</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-23T16:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/273621#M16287</link>
      <description>&lt;P&gt;Hi Greg,&lt;BR /&gt;thanks for your very prompt reply.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Yes, when in Android Studio I execute "Sync Project with Gradle Files", I have this "Gradle Sync Issue":-&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Unable to load class 'org.grangle.loading.StyledTextOutput'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Possible causes for this unexpected error include:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; * Gradle's dependency cache may be corrupt (this sometimes occur after a network connection timeout)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; * The state of a Gradle build process (daemon) may be corrupt. &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Stopping all Gradle daemons may solve this&amp;nbsp; problem.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; * Your project may be using a third-part plugin which is not compatible&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;with the other plugins in the project or the version of Gradle requested by the project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But for being honest, this is not the only issue.&lt;BR /&gt;I mean, in the old Dropbox example (DBRoulette) it was clear its pourpose.&lt;BR /&gt;There was a download example and an upload one.&lt;BR /&gt;Also, working these two examples, it has been easy to use them.&lt;BR /&gt; &lt;BR /&gt;Now, it is not clear for me what I have to use for authentication, for downloading and for uploading.&lt;BR /&gt;It is not clear for me, which example I have to run.&lt;BR /&gt;Now it is not working, but when it works, it is not clear which code I will have to use.&lt;/P&gt;
&lt;P&gt;Maybe I lost some important information.&lt;BR /&gt;Is there documentation explaining this?&lt;/P&gt;
&lt;P&gt;Thanks, again!&lt;BR /&gt;Andre&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 20:12:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/273621#M16287</guid>
      <dc:creator>Andre_LB</dc:creator>
      <dc:date>2018-04-23T20:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/273626#M16288</link>
      <description>&lt;P&gt;Thanks for the additional information. Unfortunately since that error isn't referencing Dropbox, I'm afraid I can't be of much help with that specifically. I&amp;nbsp;recommend working through the list of potential causes it cites.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, thanks for the feedback. I understand how the Android example could certainly use more detailed documentation. For reference, to set up an app to use the SDK like the sample app does:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Your AndroidManifest.xml should be set up as shown &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/AndroidManifest.xml#L33" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- You start the flow by calling startOAuth2Authentication as shown &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/UserActivity.java#L36" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;- You complete the flow by calling getOAuth2Token as shown &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java#L22" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;- Your app can store and re-use the resulting access token for that user, as the example does &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java#L24" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;- Once you have an access token, you can make a client as shown &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/395d463840778b4c6ec730aef82b0a9dbee10f8e/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxClientFactory.java#L21" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;- With a client, you can make whatever calls you want. The different pieces of functionality in the Android sample are broken out in different files listed &lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android/src/main/java/com/dropbox/core/examples/android" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 20:47:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/273626#M16288</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-23T20:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/274393#M16340</link>
      <description>&lt;P&gt;Hi Greg,&lt;BR /&gt;thanks again for your prompt reply.&lt;/P&gt;
&lt;P&gt;I tried to remove the Sync error but I have not been able.&lt;BR /&gt;You are saying that this error is not referencing Dropbox (and for this reason it is difficult for you to help me).&lt;BR /&gt;But my feeling is that this error is releted the downloaded codes and settings.&lt;BR /&gt;For this reason I am not able to fix it.&lt;BR /&gt;So I abandoned this way.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;---------------------------------------&lt;BR /&gt;Now I am straight using my app.&lt;BR /&gt;1) I updated my AndroidManifest.xml as you suggested.&lt;BR /&gt;Please, note that I do not have the "OpenWithActivity" activity section in it.&lt;/P&gt;
&lt;P&gt;2) I call the authentication.&lt;BR /&gt;For this reason, in a class (className) I added (conditioned to a botton) the following call:-&lt;BR /&gt; Auth.startOAuth2Authentication(className.this, ACCESS_KEY_NAME);&lt;/P&gt;
&lt;P&gt;ACCESS_KEY_NAME is, of course, my personal key.&lt;/P&gt;
&lt;P&gt;3) For completing the flow, as you suggested, I added the onResume method for calling getOAuth2Token.&lt;BR /&gt;Please, note that I took the onResume method from DropboxActivity class&lt;BR /&gt;(not from UserActivity one).&lt;/P&gt;
&lt;P&gt;4) Since I have got an error for "initAndLoadData" missing, I commented these two calls.&lt;/P&gt;
&lt;P&gt;I run this app and the result is:-&lt;BR /&gt;Unfortunately, className has stopped&lt;/P&gt;
&lt;P&gt;Well, I really hope that you could help me.&lt;BR /&gt;I do not hide you that I am losing any hope.&lt;BR /&gt;Thank you very much, in advance,&lt;BR /&gt;Andre&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 16:47:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/274393#M16340</guid>
      <dc:creator>Andre_LB</dc:creator>
      <dc:date>2018-04-30T16:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/274572#M16356</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662139"&gt;@Andre_LB&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it would be very helpful for you to post some actual code samples of your Activities/Classes at this point rather than just describing the process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would help replicate the issue or at least make it easier to potentially identify issues with the authorization flow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you be able to provide your manifest.xml and any relevant classes - properly sanitized of keys/tokens/etc. - for review?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 17:02:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/274572#M16356</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-05-01T17:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/274784#M16386</link>
      <description>&lt;P&gt;Hi Chuck,&lt;BR /&gt;thank you very much for your reply and suggestion.&lt;/P&gt;
&lt;P&gt;In the mean time, there have been a few progresses. With the attached code, I am able to start and complete the flow. Also, to store and re-use the resulting access token.&lt;BR /&gt;It seems to me have obtained an access token but I am not able to make a client.&lt;/P&gt;
&lt;P&gt;Indeed, when I add the "requestConfig" setting I have the following error:-&lt;BR /&gt;&lt;EM&gt;error: cannot access OkHttpClient&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;class file for okhttp3.OkHttpClient not found&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I hope that this time to be easer for you to help me.&lt;BR /&gt;But I have another issue. &lt;BR /&gt;When I'll have made a client, it is still not clear how may I use it.&lt;BR /&gt;I mean, I would like to download/upload a file from/to a Dropbox folder of mine.&lt;BR /&gt;Well, how can I perform it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much, in advance.&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Andre&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;public class &lt;/SPAN&gt;PrvDef &lt;SPAN&gt;extends &lt;/SPAN&gt;AppCompatActivity {&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;private static &lt;/SPAN&gt;DbxClientV2 &lt;SPAN&gt;sDbxClient&lt;/SPAN&gt;;&lt;BR /&gt;    &lt;SPAN&gt;public &lt;/SPAN&gt;Button &lt;SPAN&gt;auth_but&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;protected void &lt;/SPAN&gt;onCreate(Bundle savedInstanceState) {&lt;BR /&gt;        &lt;SPAN&gt;super&lt;/SPAN&gt;.onCreate(savedInstanceState);&lt;BR /&gt;        setContentView(R.layout.&lt;SPAN&gt;activity_prv_def&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;auth_but &lt;/SPAN&gt;= (Button) findViewById(R.id.&lt;SPAN&gt;login_button&lt;/SPAN&gt;);&lt;BR /&gt;        &lt;SPAN&gt;auth_but&lt;/SPAN&gt;.setOnClickListener(&lt;SPAN&gt;new &lt;/SPAN&gt;View.OnClickListener() {&lt;BR /&gt;            &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;public void &lt;/SPAN&gt;onClick(View v) {&lt;BR /&gt;                Auth.&lt;SPAN&gt;startOAuth2Authentication&lt;/SPAN&gt;(PrvDef.&lt;SPAN&gt;this&lt;/SPAN&gt;, getString(R.string.&lt;SPAN&gt;app_key&lt;/SPAN&gt;));&lt;BR /&gt;            }&lt;BR /&gt;        });&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;protected void &lt;/SPAN&gt;onResume() {&lt;BR /&gt;        &lt;SPAN&gt;super&lt;/SPAN&gt;.onResume();&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(hasToken()) {&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;login_button&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;GONE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;email_text&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;VISIBLE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;name_text&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;VISIBLE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;type_text&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;VISIBLE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;files_button&lt;/SPAN&gt;).setEnabled(&lt;SPAN&gt;true&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;open_with&lt;/SPAN&gt;).setEnabled(&lt;SPAN&gt;true&lt;/SPAN&gt;);&lt;BR /&gt;        } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;login_button&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;VISIBLE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;email_text&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;GONE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;name_text&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;GONE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;type_text&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;GONE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;files_button&lt;/SPAN&gt;).setEnabled(&lt;SPAN&gt;false&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;open_with&lt;/SPAN&gt;).setEnabled(&lt;SPAN&gt;false&lt;/SPAN&gt;);&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;    &lt;SPAN&gt;protected boolean &lt;/SPAN&gt;hasToken() {&lt;BR /&gt;        SharedPreferences prefs = getSharedPreferences(&lt;SPAN&gt;"dropbox-sample"&lt;/SPAN&gt;, &lt;SPAN&gt;MODE_PRIVATE&lt;/SPAN&gt;);&lt;BR /&gt;        String accessToken = prefs.getString(&lt;SPAN&gt;"access-token"&lt;/SPAN&gt;, &lt;SPAN&gt;null&lt;/SPAN&gt;);&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(accessToken == &lt;SPAN&gt;null&lt;/SPAN&gt;) {&lt;BR /&gt;            accessToken = Auth.&lt;SPAN&gt;getOAuth2Token&lt;/SPAN&gt;();&lt;BR /&gt;            &lt;SPAN&gt;if &lt;/SPAN&gt;(accessToken != &lt;SPAN&gt;null&lt;/SPAN&gt;) {&lt;BR /&gt;                prefs.edit().putString(&lt;SPAN&gt;"access-token"&lt;/SPAN&gt;, accessToken).apply();&lt;BR /&gt;            }&lt;BR /&gt;        }&lt;BR /&gt;        &lt;SPAN&gt;//--  requestConfig setting --------------------------------------------------------&lt;BR /&gt;&lt;/SPAN&gt;        DbxRequestConfig requestConfig = DbxRequestConfig.&lt;SPAN&gt;newBuilder&lt;/SPAN&gt;(&lt;SPAN&gt;"examples-v2-demo"&lt;/SPAN&gt;)&lt;BR /&gt;                .withHttpRequestor(&lt;SPAN&gt;new &lt;/SPAN&gt;OkHttp3Requestor(OkHttp3Requestor.&lt;SPAN&gt;defaultOkHttpClient&lt;/SPAN&gt;()))&lt;BR /&gt;                .build();&lt;BR /&gt;        &lt;SPAN&gt;sDbxClient &lt;/SPAN&gt;= &lt;SPAN&gt;new &lt;/SPAN&gt;DbxClientV2(requestConfig, accessToken);&lt;BR /&gt;        &lt;SPAN&gt;return &lt;/SPAN&gt;accessToken != &lt;SPAN&gt;null&lt;/SPAN&gt;;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;SPAN&gt;========================= Manifest =====================================&lt;BR /&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN&gt;xml version=&lt;/SPAN&gt;&lt;SPAN&gt;"1.0" &lt;/SPAN&gt;&lt;SPAN&gt;encoding=&lt;/SPAN&gt;&lt;SPAN&gt;"utf-8"&lt;/SPAN&gt;&lt;SPAN&gt;?&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;lt;&lt;SPAN&gt;manifest &lt;/SPAN&gt;&lt;SPAN&gt;xmlns:&lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"http://schemas.android.com/apk/res/android"&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;package=&lt;/SPAN&gt;&lt;SPAN&gt;"com.rram.prvdef"&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;    &amp;lt;&lt;SPAN&gt;uses-permission &lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:name=&lt;/SPAN&gt;&lt;SPAN&gt;"android.permission.INTERNET" &lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;    &amp;lt;&lt;SPAN&gt;uses-permission &lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:name=&lt;/SPAN&gt;&lt;SPAN&gt;"android.permission.WRITE_EXTERNAL_STORAGE" &lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;    &amp;lt;&lt;SPAN&gt;uses-permission &lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:name=&lt;/SPAN&gt;&lt;SPAN&gt;"android.permission.READ_EXTERNAL_STORAGE" &lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;    &amp;lt;&lt;SPAN&gt;application&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:allowBackup=&lt;/SPAN&gt;&lt;SPAN&gt;"true"&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:icon=&lt;/SPAN&gt;&lt;SPAN&gt;"@mipmap/ic_launcher"&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:label=&lt;/SPAN&gt;&lt;SPAN&gt;"@string/app_name"&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:roundIcon=&lt;/SPAN&gt;&lt;SPAN&gt;"@mipmap/ic_launcher_round"&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:supportsRtl=&lt;/SPAN&gt;&lt;SPAN&gt;"true"&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:theme=&lt;/SPAN&gt;&lt;SPAN&gt;"@style/AppTheme"&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;        &amp;lt;&lt;SPAN&gt;activity &lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:name=&lt;/SPAN&gt;&lt;SPAN&gt;".PrvDef"&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;            &amp;lt;&lt;SPAN&gt;intent-filter&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;                &amp;lt;&lt;SPAN&gt;action &lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:name=&lt;/SPAN&gt;&lt;SPAN&gt;"android.intent.action.MAIN" &lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;                &amp;lt;&lt;SPAN&gt;category &lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:name=&lt;/SPAN&gt;&lt;SPAN&gt;"android.intent.category.LAUNCHER" &lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;            &amp;lt;/&lt;SPAN&gt;intent-filter&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;        &amp;lt;/&lt;SPAN&gt;activity&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;        &amp;lt;&lt;SPAN&gt;activity&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:name=&lt;/SPAN&gt;&lt;SPAN&gt;"com.dropbox.core.android.AuthActivity"&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:configChanges=&lt;/SPAN&gt;&lt;SPAN&gt;"orientation|keyboard"&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:launchMode=&lt;/SPAN&gt;&lt;SPAN&gt;"singleTask"&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;            &amp;lt;&lt;SPAN&gt;intent-filter&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;                &lt;SPAN&gt;&amp;lt;!-- Change this to be db- followed by your app key --&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;                &amp;lt;&lt;SPAN&gt;data &lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:scheme=&lt;/SPAN&gt;&lt;SPAN&gt;"db-..my app key ..." &lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;                &amp;lt;&lt;SPAN&gt;action &lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:name=&lt;/SPAN&gt;&lt;SPAN&gt;"android.intent.action.VIEW" &lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;                &amp;lt;&lt;SPAN&gt;category &lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:name=&lt;/SPAN&gt;&lt;SPAN&gt;"android.intent.category.BROWSABLE" &lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;                &amp;lt;&lt;SPAN&gt;category &lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;:name=&lt;/SPAN&gt;&lt;SPAN&gt;"android.intent.category.DEFAULT" &lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;            &amp;lt;/&lt;SPAN&gt;intent-filter&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;        &amp;lt;/&lt;SPAN&gt;activity&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;    &amp;lt;/&lt;SPAN&gt;application&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/&lt;SPAN&gt;manifest&lt;/SPAN&gt;&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 18:01:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/274784#M16386</guid>
      <dc:creator>Andre_LB</dc:creator>
      <dc:date>2018-05-02T18:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/274803#M16388</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662139"&gt;@Andre_LB&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue regarding OkHttpClient not being found seems like it is a development environment issue, and not directly related to the Dropbox API. Are you getting errors from gradle or maven? Have you tried updating your project, or forcing a clean build? OkHttp is a dependency of the Dropbox SDK and should be included in your build environment when you include the Dropbox SDK. If you have checked out the SDK to build it yourself the dependency is still there and you'd likely see build errors occuring if it were not imported properly. As a test, you could try including the dependency directly (&lt;A href="http://square.github.io/okhttp/#download" target="_blank"&gt;http://square.github.io/okhttp/#download&lt;/A&gt;) to see if it gets you past this error. But I'm not sure there is much direct help I can offer you in resolving this issue specifically since it is technically not an API issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for how to upload/download a file via the Java SDK on Android there are examples available within the github respository:&lt;BR /&gt;Upload:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/947f3f5aa9d5903a222d4b9e4ce7ce2c4defc2a4/examples/android/src/main/java/com/dropbox/core/examples/android/UploadFileTask.java#L61" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/947f3f5aa9d5903a222d4b9e4ce7ce2c4defc2a4/examples/android/src/main/java/com/dropbox/core/examples/android/UploadFileTask.java#L61&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Download:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/947f3f5aa9d5903a222d4b9e4ce7ce2c4defc2a4/examples/android/src/main/java/com/dropbox/core/examples/android/DownloadFileTask.java#L68" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/947f3f5aa9d5903a222d4b9e4ce7ce2c4defc2a4/examples/android/src/main/java/com/dropbox/core/examples/android/DownloadFileTask.java#L68&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that gets you a bit further along,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 20:21:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/274803#M16388</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-05-02T20:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/274828#M16389</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Chuck,&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;thank you for your prompt reply.&lt;/DIV&gt;
&lt;DIV&gt;Lovely, I included the dependency directly, as you suggested, and the error that I had from gradle has disappeared!&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Now, if I run the app, I have got:-&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;I&gt;Unfortunately, PrvDef has stopped.&lt;/I&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The issue seems to be in client &lt;SPAN&gt;creating command&amp;nbsp;(that is, "&lt;I&gt;sDbxClient = new DbxClientV2(requestConfig, accessToken);&lt;/I&gt;" )&lt;/SPAN&gt;.&lt;BR /&gt;Indeed, if I comment&amp;nbsp;it this issue disappears.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I did not change the code (that i previously sent to you).&lt;/DIV&gt;
&lt;DIV&gt;Let me know, please, if you need more information.&lt;/DIV&gt;
&lt;DIV&gt;Thank you very much, in advance.&lt;/DIV&gt;
&lt;DIV&gt;Kind Regards,&lt;/DIV&gt;
&lt;DIV&gt;Andre&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 May 2018 22:05:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/274828#M16389</guid>
      <dc:creator>Andre_LB</dc:creator>
      <dc:date>2018-05-02T22:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/274831#M16391</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662139"&gt;@Andre_LB&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again this appears to be a more generic Android development question and not a Dropbox API specific question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest you take a good look at the sample Android application included in the Java SDK github repository:&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android/src/main/java/com/dropbox/core/examples/android" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android/src/main/java/com/dropbox/core/examples/android&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically, you are creating the client within your hasToken() method which seems a dubious place to perform such an action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest following the flow of the sample application carefully and paying attention to the following class:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxClientFactory.java" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxClientFactory.java&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And when/where it gets invoked:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/search?utf8=%E2%9C%93&amp;amp;q=DropboxClientFactory&amp;amp;type=" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/search?utf8=%E2%9C%93&amp;amp;q=DropboxClientFactory&amp;amp;type=&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 22:41:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/274831#M16391</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-05-02T22:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275395#M16444</link>
      <description>&lt;P&gt;Hi Chuck,&lt;/P&gt;
&lt;P&gt;thanks for your reply and for yuor advice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have set a project with the following classes:-&lt;BR /&gt;. PrvDef&lt;BR /&gt;. DropboxActivity&lt;BR /&gt;. DropboxClientFactory&lt;BR /&gt;. FileThumbnailRequestHandler&lt;BR /&gt;. GetCurrentAccountTask&lt;BR /&gt;. PicassoClient&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;DropboxActivity, DropboxClientFactory, FileThumbnailRequestHandler, GetCurrentAccountTask and PicassoClient&lt;/EM&gt; &lt;BR /&gt;are exactly the same of "&lt;EM&gt;dropbox-sdk-java-master&lt;/EM&gt;" project classes (apart from the &lt;EM&gt;package&lt;/EM&gt; declaration, of course).&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;PrvDef&lt;/EM&gt;&amp;nbsp;class (attached) is slightly different from UserActivity: indeed I have commented the "filesButton" and "openWithButton" commands. Since I have a problem "before" them, I tried to simplify the project.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I run it, but the result is:-&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Unfortunately, PrvDef Has stopped.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, if I comment the three rows in "&lt;EM&gt;initAndLoadData&lt;/EM&gt;" method of&amp;nbsp;&lt;EM&gt;DropboxActivity&lt;/EM&gt; class, this issue disappear.&lt;/P&gt;
&lt;P&gt;Also, both "&lt;EM&gt;view files&lt;/EM&gt;" and "&lt;EM&gt;Test Open&lt;/EM&gt;"&amp;nbsp; buttons are enabled, that is the filing is that &lt;EM&gt;hasToken()&lt;/EM&gt; method to be &lt;EM&gt;true&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;Since my code is now so&amp;nbsp;similar to "&lt;EM&gt;dropbox-sdk-java-master&lt;/EM&gt;" code, it seems to me that it is no more possible for me to improve it.&lt;BR /&gt;Please, let me know your opinion. Thanks, in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-------------------------------&lt;BR /&gt;Since I had a &lt;EM&gt;build.gradle&lt;/EM&gt; file different from &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;EM&gt;dropbox-sdk-java-master&lt;/EM&gt;&lt;SPAN&gt;"&amp;nbsp;&lt;/SPAN&gt;project one, I updated mine.&lt;BR /&gt;But I descovered that the &lt;EM&gt;build.gradle&lt;/EM&gt; file of the "&lt;EM&gt;dropbox-sdk-java-master&lt;/EM&gt;" project has Gradle errors.&lt;BR /&gt;I tried to&amp;nbsp;remove those Gradle errors, but I have not been able to&amp;nbsp;do it .&lt;/P&gt;
&lt;P&gt;I mean, I have "&lt;EM&gt;Failed to resolve: com.dropbox.core:dropbox-core-sdk:0-SNAPSHOT&lt;/EM&gt;" error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please confirm me that the &lt;EM&gt;build.gradle&lt;/EM&gt; file of &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;EM&gt;dropbox-sdk-java-master&lt;/EM&gt;&lt;SPAN&gt;"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;project not&amp;nbsp;&lt;/SPAN&gt;to have got Gradle Build errors and that project to be still running in Android correctly?&lt;/P&gt;
&lt;P&gt;Also, I noticed that the &lt;EM&gt;dropbox-core-sdk&lt;/EM&gt; library is not present in &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;EM&gt;dropbox-sdk-java-master&lt;/EM&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;. Where may I find the right version?&lt;/P&gt;
&lt;P&gt;Thank you, in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Andre&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;public class &lt;/SPAN&gt;PrvDef &lt;SPAN&gt;extends &lt;/SPAN&gt;DropboxActivity {&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;protected void &lt;/SPAN&gt;onCreate(Bundle savedInstanceState) {&lt;BR /&gt;        &lt;SPAN&gt;super&lt;/SPAN&gt;.onCreate(savedInstanceState);&lt;BR /&gt;&lt;BR /&gt;        setContentView(R.layout.&lt;SPAN&gt;activity_user&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;        Toolbar toolbar = (Toolbar) findViewById(R.id.&lt;SPAN&gt;app_bar&lt;/SPAN&gt;);&lt;BR /&gt;        setSupportActionBar(toolbar);&lt;BR /&gt;&lt;BR /&gt;        Button loginButton = (Button)findViewById(R.id.&lt;SPAN&gt;login_button&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;        loginButton.setOnClickListener(&lt;SPAN&gt;new &lt;/SPAN&gt;View.OnClickListener() {&lt;BR /&gt;            &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;public void &lt;/SPAN&gt;onClick(View v) {&lt;BR /&gt;                Auth.&lt;SPAN&gt;startOAuth2Authentication&lt;/SPAN&gt;(PrvDef.&lt;SPAN&gt;this&lt;/SPAN&gt;, getString(R.string.&lt;SPAN&gt;app_key&lt;/SPAN&gt;));&lt;BR /&gt;            }&lt;BR /&gt;        });&lt;BR /&gt;&lt;BR /&gt;        Button filesButton = (Button)findViewById(R.id.&lt;SPAN&gt;files_button&lt;/SPAN&gt;);&lt;BR /&gt;        filesButton.setOnClickListener(&lt;SPAN&gt;new &lt;/SPAN&gt;View.OnClickListener() {&lt;BR /&gt;            &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;public void &lt;/SPAN&gt;onClick(View v) {&lt;BR /&gt;                &lt;SPAN&gt;//startActivity(FilesActivity.getIntent(PrvDef.this, ""));&lt;BR /&gt;&lt;/SPAN&gt;            }&lt;BR /&gt;        });&lt;BR /&gt;&lt;BR /&gt;        Button openWithButton = (Button)findViewById(R.id.&lt;SPAN&gt;open_with&lt;/SPAN&gt;);&lt;BR /&gt;        openWithButton.setOnClickListener(&lt;SPAN&gt;new &lt;/SPAN&gt;View.OnClickListener() {&lt;BR /&gt;            &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;public void &lt;/SPAN&gt;onClick(View v) {&lt;BR /&gt;                &lt;SPAN&gt;//Intent openWithIntent = new Intent(UserActivity.this, OpenWithActivity.class);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;                //startActivity(openWithIntent);&lt;BR /&gt;&lt;/SPAN&gt;            }&lt;BR /&gt;        });&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;protected void &lt;/SPAN&gt;onResume() {&lt;BR /&gt;        &lt;SPAN&gt;super&lt;/SPAN&gt;.onResume();&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(hasToken()) {&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;login_button&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;GONE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;email_text&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;VISIBLE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;name_text&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;VISIBLE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;type_text&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;VISIBLE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;files_button&lt;/SPAN&gt;).setEnabled(&lt;SPAN&gt;true&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;open_with&lt;/SPAN&gt;).setEnabled(&lt;SPAN&gt;true&lt;/SPAN&gt;);&lt;BR /&gt;        } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;login_button&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;VISIBLE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;email_text&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;GONE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;name_text&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;GONE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;type_text&lt;/SPAN&gt;).setVisibility(View.&lt;SPAN&gt;GONE&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;files_button&lt;/SPAN&gt;).setEnabled(&lt;SPAN&gt;false&lt;/SPAN&gt;);&lt;BR /&gt;            findViewById(R.id.&lt;SPAN&gt;open_with&lt;/SPAN&gt;).setEnabled(&lt;SPAN&gt;false&lt;/SPAN&gt;);&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;protected void &lt;/SPAN&gt;loadData() {&lt;BR /&gt;        &lt;SPAN&gt;new &lt;/SPAN&gt;GetCurrentAccountTask(DropboxClientFactory.&lt;SPAN&gt;getClient&lt;/SPAN&gt;(), &lt;SPAN&gt;new &lt;/SPAN&gt;GetCurrentAccountTask.Callback() {&lt;BR /&gt;            &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;public void &lt;/SPAN&gt;onComplete(FullAccount result) {&lt;BR /&gt;                ((TextView) findViewById(R.id.&lt;SPAN&gt;email_text&lt;/SPAN&gt;)).setText(result.getEmail());&lt;BR /&gt;                ((TextView) findViewById(R.id.&lt;SPAN&gt;name_text&lt;/SPAN&gt;)).setText(result.getName().getDisplayName());&lt;BR /&gt;                ((TextView) findViewById(R.id.&lt;SPAN&gt;type_text&lt;/SPAN&gt;)).setText(result.getAccountType().name());&lt;BR /&gt;            }&lt;BR /&gt;&lt;BR /&gt;            &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;public void &lt;/SPAN&gt;onError(Exception e) {&lt;BR /&gt;                Log.&lt;SPAN&gt;e&lt;/SPAN&gt;(getClass().getName(), &lt;SPAN&gt;"Failed to get account details."&lt;/SPAN&gt;, e);&lt;BR /&gt;            }&lt;BR /&gt;        }).execute();&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 20:37:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275395#M16444</guid>
      <dc:creator>Andre_LB</dc:creator>
      <dc:date>2018-05-07T20:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275542#M16467</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662139"&gt;@Andre_LB&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So after doing an examination of the Android example from the Java SDK repository, I can confirm that I am able to get it running. However, I did have to make a few edits to the build.gradle file, the proguard-rules, and Android Studio itself, when running on a fully updated version of Android Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post a copy of your build.gradle and also please include any app exceptions from logcat&amp;nbsp;when you run the Dropbox code and the application closes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 21:35:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275542#M16467</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-05-08T21:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275699#M16486</link>
      <description>&lt;P&gt;Hi Chuck,&lt;/P&gt;
&lt;P&gt;attached my build.gradle.&lt;BR /&gt;Sorry, I have wrongly explaned myself: in this situation (after I have set the build.gradle as your example) I have a &lt;EM&gt;Gradle Sync Issue&lt;/EM&gt; that I had got when I run your download, that is:-&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Unable to load class 'org.gradle.logging.StyledTextOutput'&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;I tried to remove this error, but I am not able.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have said that "&lt;EM&gt;did&amp;nbsp;have to make a few edits to the build.gradle file, the proguard-rules, and Android Studio itself&lt;/EM&gt;".&lt;/P&gt;
&lt;P&gt;I dowload again your example: the file dates seem changed, but the files seem to be the same.&lt;/P&gt;
&lt;P&gt;That is, I have not seen any difference: what did you change?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, in advance.&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Andre&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;// Top-level build file where you can add configuration options common to all sub-projects/modules.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;buildscript {&lt;BR /&gt;    repositories {&lt;BR /&gt;        jcenter()&lt;BR /&gt;    }&lt;BR /&gt;    dependencies {&lt;BR /&gt;        classpath &lt;SPAN&gt;'com.android.tools.build:gradle:2.1.0'&lt;BR /&gt;&lt;/SPAN&gt;        classpath &lt;SPAN&gt;'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.2'&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;allprojects {&lt;BR /&gt;    repositories {&lt;BR /&gt;        jcenter()&lt;BR /&gt;        mavenLocal()&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;apply &lt;SPAN&gt;plugin&lt;/SPAN&gt;: &lt;SPAN&gt;'com.android.application'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;android {&lt;BR /&gt;    compileSdkVersion &lt;SPAN&gt;26&lt;BR /&gt;&lt;/SPAN&gt;    buildToolsVersion &lt;SPAN&gt;"26.0.1"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;    defaultConfig {&lt;BR /&gt;        applicationId &lt;SPAN&gt;"com.rram.prvdef"&lt;BR /&gt;&lt;/SPAN&gt;        minSdkVersion &lt;SPAN&gt;19&lt;BR /&gt;&lt;/SPAN&gt;        targetSdkVersion &lt;SPAN&gt;26&lt;BR /&gt;&lt;/SPAN&gt;        versionCode &lt;SPAN&gt;1&lt;BR /&gt;&lt;/SPAN&gt;        versionName &lt;SPAN&gt;"1.0"&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;&lt;BR /&gt;    buildTypes {&lt;BR /&gt;        release {&lt;BR /&gt;            minifyEnabled &lt;SPAN&gt;true&lt;BR /&gt;&lt;/SPAN&gt;            shrinkResources &lt;SPAN&gt;true&lt;BR /&gt;&lt;/SPAN&gt;            proguardFiles getDefaultProguardFile(&lt;SPAN&gt;'proguard-android-optimize.txt'&lt;/SPAN&gt;), &lt;SPAN&gt;'proguard-rules.pro'&lt;BR /&gt;&lt;/SPAN&gt;        }&lt;BR /&gt;        debug {&lt;BR /&gt;            &lt;SPAN&gt;// to debug ProGuard rules&lt;BR /&gt;&lt;/SPAN&gt;            minifyEnabled &lt;SPAN&gt;true&lt;BR /&gt;&lt;/SPAN&gt;            proguardFiles getDefaultProguardFile(&lt;SPAN&gt;'proguard-android.txt'&lt;/SPAN&gt;), &lt;SPAN&gt;'proguard-rules-debug.pro'&lt;BR /&gt;&lt;/SPAN&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    packagingOptions {&lt;BR /&gt;        exclude &lt;SPAN&gt;'META-INF/LICENSE'&lt;BR /&gt;&lt;/SPAN&gt;        exclude &lt;SPAN&gt;'META-INF/LICENSE.txt'&lt;BR /&gt;&lt;/SPAN&gt;        exclude &lt;SPAN&gt;'META-INF/NOTICE'&lt;BR /&gt;&lt;/SPAN&gt;        exclude &lt;SPAN&gt;'META-INF/NOTICE.txt'&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;&lt;BR /&gt;    lintOptions {&lt;BR /&gt;        disable &lt;SPAN&gt;'InvalidPackage'&lt;BR /&gt;&lt;/SPAN&gt;        abortOnError &lt;SPAN&gt;false&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;dependencies {&lt;BR /&gt;    compile &lt;SPAN&gt;'com.dropbox.core:dropbox-core-sdk:3.0.6'&lt;BR /&gt;&lt;/SPAN&gt;    compile &lt;SPAN&gt;'com.android.support:appcompat-v7:26.1.0'&lt;BR /&gt;&lt;/SPAN&gt;    compile &lt;SPAN&gt;'com.android.support:design:26.1.0'&lt;BR /&gt;&lt;/SPAN&gt;    compile &lt;SPAN&gt;'com.android.support:recyclerview-v7:26.1.0'&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;// picasso 2.5.2 doesn't have OkHttp3 support (although it exists&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    // on master). Must use OkHttp v2 and v3 until new picasso release&lt;BR /&gt;&lt;/SPAN&gt;    compile &lt;SPAN&gt;'com.squareup.picasso:picasso:2.5.2'&lt;BR /&gt;&lt;/SPAN&gt;    compile &lt;SPAN&gt;'com.squareup.okhttp:okhttp:2.7.5'&lt;BR /&gt;&lt;/SPAN&gt;    compile &lt;SPAN&gt;'com.squareup.okhttp3:okhttp:3.5.0'&lt;BR /&gt;&lt;/SPAN&gt;}&lt;BR /&gt;&lt;BR /&gt;apply &lt;SPAN&gt;plugin&lt;/SPAN&gt;: &lt;SPAN&gt;'com.getkeepsafe.dexcount'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;dexcount {&lt;BR /&gt;    format = &lt;SPAN&gt;"list"&lt;BR /&gt;&lt;/SPAN&gt;    includeClasses = &lt;SPAN&gt;true&lt;BR /&gt;&lt;/SPAN&gt;    includeFieldCount = &lt;SPAN&gt;false&lt;BR /&gt;&lt;/SPAN&gt;    orderByMethodCount = &lt;SPAN&gt;true&lt;BR /&gt;&lt;/SPAN&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 22:05:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275699#M16486</guid>
      <dc:creator>Andre_LB</dc:creator>
      <dc:date>2018-05-09T22:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275703#M16488</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662139"&gt;@Andre_LB&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I only changed the files and settings locally on my checked-out version of the example to get it running for me. I will be looking at getting changes made to the example but for now, I'd like to see if we can solve your issues via the same method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, for the first step, can you please try making the following edit to your gradle&amp;nbsp;file, replace:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.2'&lt;/PRE&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.2'&lt;/PRE&gt;
&lt;P&gt;And let me know if that gets you past the StyledTextOutput error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The next error you might encounter will require a change to proguard-rules-debug.pro. Make the following&amp;nbsp;change:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;-include "proguard-rules.pro"&lt;/PRE&gt;
&lt;P&gt;To&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;-include proguard-rules.pro&lt;/PRE&gt;
&lt;P&gt;(remove the quotes)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another issue you might see is if instant app support is enabled in Android Studio. I disabled it due to classes not being properly found at runtime. To do this go to:&lt;BR /&gt;&lt;BR /&gt;Files | Settings | Build, Execution, Deployment | Instant Run&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And disable the setting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please give these changes a try and see if it makes a difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 22:44:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275703#M16488</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-05-09T22:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275708#M16489</link>
      <description>&lt;P&gt;Hi Chuch,&lt;/P&gt;
&lt;P&gt;thank very much for your prompt reply and suggestions.&lt;/P&gt;
&lt;P&gt;I applied all the suggested changes.&lt;/P&gt;
&lt;P&gt;Also I updated the&amp;nbsp;&lt;EM&gt;buildToolsVersion&lt;/EM&gt; from "26.0.1" into "26.0.2": now I may &lt;EM&gt;Sync Project&lt;/EM&gt; without errors.&lt;/P&gt;
&lt;P&gt;But, if I run the app, I have got a few warnings and the following &lt;EM&gt;Gradle Build&lt;/EM&gt; error:-&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Execution failed for task 'app:transformClassesAndResoucesWithProguardForDebug'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know, please. Thanks, in advance!&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Andre&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 23:28:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275708#M16489</guid>
      <dc:creator>Andre_LB</dc:creator>
      <dc:date>2018-05-09T23:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275806#M16492</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662139"&gt;@Andre_LB&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please include details for the warnings and anything else logged about the error? Also, simple question, have you done a clean build? (Build&amp;nbsp;| Clean Project)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 16:00:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275806#M16492</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-05-10T16:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275824#M16498</link>
      <description>&lt;P&gt;Hi Chuck,&lt;/P&gt;
&lt;P&gt;thanks again for your reply and effort.&lt;/P&gt;
&lt;P&gt;There are 57 warnings as, please, you can see: I am posting the first ten and the last seven.&lt;BR /&gt;Let me know, please, if you need the complete warning list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I have. But &lt;EM&gt;clean build&lt;/EM&gt; is the only command performed by me (apart from &lt;EM&gt;Sync Project&lt;/EM&gt; and &lt;EM&gt;Run App&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;Do you think me to have to execute something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, again.&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Andre&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=================================&lt;/P&gt;
&lt;P&gt;Information:Gradle tasks [:app:assembleDebug]&lt;BR /&gt;Warning:com.dropbox.core.DbxStandardSessionStore: can't find referenced class javax.servlet.http.HttpSession&lt;BR /&gt;Warning:com.dropbox.core.http.GoogleAppEngineRequestor: can't find referenced class com.google.appengine.api.urlfetch.URLFetchServiceFactory&lt;BR /&gt;Warning:com.dropbox.core.http.GoogleAppEngineRequestor: can't find referenced class com.google.appengine.api.urlfetch.HTTPMethod&lt;BR /&gt;Warning:com.dropbox.core.http.GoogleAppEngineRequestor: can't find referenced class com.google.appengine.api.urlfetch.URLFetchService&lt;BR /&gt;Warning:com.dropbox.core.http.GoogleAppEngineRequestor: can't find referenced class com.google.appengine.api.urlfetch.HTTPMethod&lt;BR /&gt;Warning:com.dropbox.core.http.GoogleAppEngineRequestor: can't find referenced class com.google.appengine.api.urlfetch.HTTPRequest&lt;BR /&gt;Warning:com.dropbox.core.http.GoogleAppEngineRequestor: can't find referenced class com.google.appengine.api.urlfetch.HTTPHeader&lt;BR /&gt;Warning:com.dropbox.core.http.GoogleAppEngineRequestor: can't find referenced class com.google.appengine.api.urlfetch.HTTPRequest&lt;BR /&gt;Warning:com.dropbox.core.http.GoogleAppEngineRequestor: can't find referenced class com.google.appengine.api.urlfetch.FetchOptions$Builder&lt;BR /&gt;Warning:com.dropbox.core.http.GoogleAppEngineRequestor: can't find referenced class com.google.appengine.api.urlfetch.FetchOptions&lt;BR /&gt;Warning:com.dropbox.core.http.GoogleAppEngineRequestor: can't find referenced class com.google.appengine.api.urlfetch.HTTPResponse&lt;BR /&gt;...................................................................................................................... &lt;BR /&gt;Warning:com.dropbox.core.http.GoogleAppEngineRequestor$FetchServiceUploader: can't find referenced class com.google.appengine.api.urlfetch.URLFetchService&lt;BR /&gt;Warning:com.dropbox.core.http.GoogleAppEngineRequestor$FetchServiceUploader: can't find referenced class com.google.appengine.api.urlfetch.HTTPRequest&lt;BR /&gt;Warning:com.dropbox.core.http.GoogleAppEngineRequestor$FetchServiceUploader: can't find referenced class com.google.appengine.api.urlfetch.HTTPResponse&lt;BR /&gt;Warning:okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement&lt;BR /&gt;Warning:okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement&lt;BR /&gt;Warning:there were 77 unresolved references to classes or interfaces.&lt;BR /&gt;Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.&lt;BR /&gt;Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug'.&lt;BR /&gt;&amp;gt; Job failed, see logs for details&lt;BR /&gt;Information:BUILD FAILED in 15s&lt;BR /&gt;Information:1 error&lt;BR /&gt;Information:57 warnings&lt;BR /&gt;Information:See complete output in console&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 17:51:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275824#M16498</guid>
      <dc:creator>Andre_LB</dc:creator>
      <dc:date>2018-05-10T17:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275830#M16501</link>
      <description>&lt;P&gt;Hi Chuck,&lt;/P&gt;
&lt;P&gt;I have a doubt.&lt;/P&gt;
&lt;P&gt;Till now, I have always sent you the "Module: app" build.gradle file.&lt;/P&gt;
&lt;P&gt;Attached, please, you may fing the "Project: PrvDef" one.&lt;/P&gt;
&lt;P&gt;Is this correct? Thanks, in advance.&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Andre&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;// Top-level build file where you can add configuration options common to all sub-projects/modules.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;buildscript {&lt;BR /&gt;    &lt;BR /&gt;    repositories {&lt;BR /&gt;        google()&lt;BR /&gt;        jcenter()&lt;BR /&gt;    }&lt;BR /&gt;    dependencies {&lt;BR /&gt;        classpath &lt;SPAN&gt;'com.android.tools.build:gradle:3.0.1'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;// NOTE: Do not place your application dependencies here; they belong&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        // in the individual module build.gradle files&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;allprojects {&lt;BR /&gt;    repositories {&lt;BR /&gt;        google()&lt;BR /&gt;        jcenter()&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;task clean(&lt;SPAN&gt;type&lt;/SPAN&gt;: Delete) {&lt;BR /&gt;    delete rootProject.buildDir&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 18:08:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275830#M16501</guid>
      <dc:creator>Andre_LB</dc:creator>
      <dc:date>2018-05-10T18:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275946#M16516</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662139"&gt;@Andre_LB&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's take a step back here. At this point, I think it's best to just get the&amp;nbsp;Android example app from the Java SDK repository running. I want to make sure we're both on the same page there. PrvDef is your custom application, correct? For the moment, I think we should hold off on that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please verify that we're currently working with a cleanly checked out copy of the Android example app that has been imported into Android studio?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, let's start over with that and try to get it up and running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 16:52:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/275946#M16516</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-05-11T16:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: v2 API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/276126#M16530</link>
      <description>&lt;P&gt;Hi Chuck,&lt;/P&gt;
&lt;P&gt;I downloaded the&amp;nbsp;DropBox-SDK, executed "&lt;EM&gt;Import Project&lt;/EM&gt;" in &lt;EM&gt;Android Studio&lt;/EM&gt;&amp;nbsp;and selected the folder:&lt;BR /&gt;&lt;EM&gt;..\examples\android&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Since I have got the following error:-&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Error:Failed to resolve: com.dropbox.core:dropbox-core-sdk:0-SNAPSHOT&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I changed in the &lt;EM&gt;build.gradle&lt;/EM&gt; file (&lt;EM&gt;Module: Android&lt;/EM&gt;):-&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;compile group: 'com.dropbox.core', name: 'dropbox-core-sdk', version: '0-SNAPSHOT', changing: true&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;into:-&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;compile 'com.dropbox.core:dropbox-core-sdk:3.0.6'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, in my developer app console, I created the app "&lt;EM&gt;UserActivity&lt;/EM&gt;" and updated the app key in &lt;EM&gt;AndroidManifest&lt;/EM&gt; file and &lt;EM&gt;res/strings&lt;/EM&gt; file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Very well: now I am able to Authenticate and download a file.&lt;/P&gt;
&lt;P&gt;Tomorrow I am going to check the differences between your example and my app (I confirm&amp;nbsp;&lt;EM&gt;PrvDef&lt;/EM&gt; is my custom application).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your kind help and effort.&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Andre&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 May 2018 20:21:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/v2-API/m-p/276126#M16530</guid>
      <dc:creator>Andre_LB</dc:creator>
      <dc:date>2018-05-13T20:21:26Z</dc:date>
    </item>
  </channel>
</rss>

