<?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: okhttp not found, migrating to Android developer studio (gradle) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/415796#M22421</link>
    <description>&lt;P&gt;It looks like you're trying to load the&amp;nbsp;Dropbox SDK and dependencies directly from jar files yourself. I&amp;nbsp;recommend just letting Gradle handle all of this though, by &lt;A href="http://That%20output indicates that the team you're connected to does use the &amp;quot;team space&amp;quot; configuration.    The 'is_team_folder' will be returned as true for the team space itself, as you saw, but not for other folders inside the team space. Those other folders still get their own shared folder IDs though.    It sounds like you're seeing 'already_shared' errors though? (For reference, it's easier for us to help if you post the code and error you're getting.) In this case, that's likely because folders inside a &amp;quot;team space&amp;quot; in particular will get shared automatically. So, for example, after creating the folder, you can get its metadata to get its shared folder ID, like this, from my own testing:    curl -X POST https://api.dropboxapi.com/2/files/get_metadata \     --header &amp;quot;Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;&amp;quot; \     --header &amp;quot;Dropbox-API-Select-User: &amp;lt;TEAM_MEMBER_ID&amp;gt;&amp;quot; \     --header 'Dropbox-API-Path-Root: {&amp;quot;.tag&amp;quot;: &amp;quot;root&amp;quot;, &amp;quot;root&amp;quot;: &amp;quot;1990815600&amp;quot;}' \     --header &amp;quot;Content-Type: application/json&amp;quot; \     --data &amp;quot;{\&amp;quot;path\&amp;quot;: \&amp;quot;/test_414984_2\&amp;quot;}&amp;quot;  # { #   &amp;quot;.tag&amp;quot;: &amp;quot;folder&amp;quot;, #   &amp;quot;name&amp;quot;: &amp;quot;test_414984_2&amp;quot;, #   &amp;quot;path_lower&amp;quot;: &amp;quot;/test_414984_2&amp;quot;, #   &amp;quot;path_display&amp;quot;: &amp;quot;/test_414984_2&amp;quot;, #   &amp;quot;parent_shared_folder_id&amp;quot;: &amp;quot;1990815600&amp;quot;, #   &amp;quot;id&amp;quot;: &amp;quot;id:AAFTM3U8MQAAAAAAAAADiQ&amp;quot;, #   &amp;quot;shared_folder_id&amp;quot;: &amp;quot;7575688240&amp;quot;, #   &amp;quot;sharing_info&amp;quot;: { #     &amp;quot;read_only&amp;quot;: false, #     &amp;quot;parent_shared_folder_id&amp;quot;: &amp;quot;1990815600&amp;quot;, #     &amp;quot;shared_folder_id&amp;quot;: &amp;quot;7575688240&amp;quot;, #     &amp;quot;traverse_only&amp;quot;: false, #     &amp;quot;no_access&amp;quot;: false #   } # } I can then use that shared folder ID (7575688240 in my case) with&amp;nbsp;/2/sharing/add_folder_member to add members to just this new folder.  curl -X POST https://api.dropboxapi.com/2/sharing/add_folder_member \     --header &amp;quot;Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;&amp;quot; \     --header &amp;quot;Dropbox-API-Select-User: &amp;lt;TEAM_MEMBER_ID&amp;gt;&amp;quot; \     --header 'Dropbox-API-Path-Root: {&amp;quot;.tag&amp;quot;: &amp;quot;root&amp;quot;, &amp;quot;root&amp;quot;: &amp;quot;1990815600&amp;quot;}' \     --header &amp;quot;Content-Type: application/json&amp;quot; \     --data &amp;quot;{\&amp;quot;shared_folder_id\&amp;quot;: \&amp;quot;7575688240\&amp;quot;,\&amp;quot;members\&amp;quot;: [{\&amp;quot;member\&amp;quot;: {\&amp;quot;.tag\&amp;quot;: \&amp;quot;email\&amp;quot;,\&amp;quot;email\&amp;quot;: \&amp;quot;user@example.com\&amp;quot;}}]}&amp;quot;" target="_self"&gt;listing&amp;nbsp;Dropbox as a dependency as shown here&lt;/A&gt;, like this:&lt;/P&gt;
&lt;PRE&gt;    implementation 'com.dropbox.core:dropbox-core-sdk:3.1.3'&lt;/PRE&gt;
&lt;P&gt;That should take care of downloading the&amp;nbsp;Dropbox library and its dependencies for you. That way you don't have to include all of them yourself. (Either way, you shouldn't have 'dropbox-android-sdk', as that's an old and now retired SDK.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2020 17:22:28 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-04-30T17:22:28Z</dc:date>
    <item>
      <title>okhttp not found, migrating to Android developer studio (gradle)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/415790#M22420</link>
      <description>&lt;P&gt;I have an application that i have not needed to update since moving to API v2 in 2017.&amp;nbsp; Due to google enforcing a minimum targetSDK i have made modifications and the project now meets the target and is backward compatible to API 8 in eclipse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying now to migrate the eclipse project over to ADS. I have to admit that I have no prior experience until the last few days of ADS and gradle, so please be gentle!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i build my app i am getting the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cannot access OkHttpClient class file for com.squareup.okhttp.OkHttpClient not found&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;C:\test\testproject\src\main\java\com\dropbox\core\examples\android\PicassoClient.java:19: error: cannot access OkHttpClient&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .downloader(new OkHttpDownloader(context))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have the .jar file for okhttp in libs folder (same files that build ok with eclipse).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have tried adding dependency so gradle downloads but it fails to find it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;implementation 'com.squareup.okhttp3:3.8.1'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;implementation 'com.squareup.okhttp3:3.0.1'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my build.gradle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&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;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;    compileSdkVersion &lt;SPAN&gt;28&lt;BR /&gt;&lt;/SPAN&gt;    buildToolsVersion &lt;SPAN&gt;"29.0.3"&lt;BR /&gt;&lt;/SPAN&gt;    useLibrary &lt;SPAN&gt;'org.apache.http.legacy'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;    defaultConfig &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;        applicationId &lt;SPAN&gt;"com.test.testproject"&lt;BR /&gt;&lt;/SPAN&gt;        minSdkVersion &lt;SPAN&gt;14&lt;BR /&gt;&lt;/SPAN&gt;        targetSdkVersion &lt;SPAN&gt;28&lt;BR /&gt;&lt;/SPAN&gt;        compileOptions &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;            sourceCompatibility JavaVersion.&lt;SPAN&gt;VERSION_1_7&lt;BR /&gt;&lt;/SPAN&gt;            targetCompatibility JavaVersion.&lt;SPAN&gt;VERSION_1_7&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;&lt;BR /&gt;&lt;/SPAN&gt;    buildTypes &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;        release &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;            minifyEnabled &lt;SPAN&gt;true&lt;BR /&gt;&lt;/SPAN&gt;            proguardFiles &lt;SPAN&gt;'proguard.cfg'&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;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;dependencies &lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;    implementation files(&lt;SPAN&gt;'libs/okio-1.13.0.jar'&lt;/SPAN&gt;)&lt;BR /&gt;    implementation files(&lt;SPAN&gt;'libs/okhttp-3.8.1.jar'&lt;/SPAN&gt;)&lt;BR /&gt;    &lt;SPAN&gt;//implementation 'com.squareup.okhttp3:3.8.1'&lt;BR /&gt;&lt;/SPAN&gt;    implementation files(&lt;SPAN&gt;'libs/picasso-2.5.2.jar'&lt;/SPAN&gt;)&lt;BR /&gt;    implementation files(&lt;SPAN&gt;'libs/dropbox-android-sdk.jar'&lt;/SPAN&gt;)&lt;BR /&gt;    implementation files(&lt;SPAN&gt;'libs/dropbox-core-sdk-3.0.3.jar'&lt;/SPAN&gt;)&lt;BR /&gt;    implementation files(&lt;SPAN&gt;'libs/httpmime-4.0.3.jar'&lt;/SPAN&gt;)&lt;BR /&gt;    implementation files(&lt;SPAN&gt;'libs/jackson-core-2.7.4.jar'&lt;/SPAN&gt;)&lt;BR /&gt;    implementation files(&lt;SPAN&gt;'libs/json_simple-1.1.jar'&lt;/SPAN&gt;)&lt;BR /&gt;    implementation fileTree(&lt;SPAN&gt;dir&lt;/SPAN&gt;: &lt;SPAN&gt;'C:&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;support&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;v7&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;appcompat&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;libs'&lt;/SPAN&gt;, &lt;SPAN&gt;include&lt;/SPAN&gt;: [&lt;SPAN&gt;'*.aar'&lt;/SPAN&gt;, &lt;SPAN&gt;'*.jar'&lt;/SPAN&gt;], &lt;SPAN&gt;exclude&lt;/SPAN&gt;: [])&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 17:15:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/415790#M22420</guid>
      <dc:creator>swright1512</dc:creator>
      <dc:date>2020-04-30T17:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: okhttp not found, migrating to Android developer studio (gradle)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/415796#M22421</link>
      <description>&lt;P&gt;It looks like you're trying to load the&amp;nbsp;Dropbox SDK and dependencies directly from jar files yourself. I&amp;nbsp;recommend just letting Gradle handle all of this though, by &lt;A href="http://That%20output indicates that the team you're connected to does use the &amp;quot;team space&amp;quot; configuration.    The 'is_team_folder' will be returned as true for the team space itself, as you saw, but not for other folders inside the team space. Those other folders still get their own shared folder IDs though.    It sounds like you're seeing 'already_shared' errors though? (For reference, it's easier for us to help if you post the code and error you're getting.) In this case, that's likely because folders inside a &amp;quot;team space&amp;quot; in particular will get shared automatically. So, for example, after creating the folder, you can get its metadata to get its shared folder ID, like this, from my own testing:    curl -X POST https://api.dropboxapi.com/2/files/get_metadata \     --header &amp;quot;Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;&amp;quot; \     --header &amp;quot;Dropbox-API-Select-User: &amp;lt;TEAM_MEMBER_ID&amp;gt;&amp;quot; \     --header 'Dropbox-API-Path-Root: {&amp;quot;.tag&amp;quot;: &amp;quot;root&amp;quot;, &amp;quot;root&amp;quot;: &amp;quot;1990815600&amp;quot;}' \     --header &amp;quot;Content-Type: application/json&amp;quot; \     --data &amp;quot;{\&amp;quot;path\&amp;quot;: \&amp;quot;/test_414984_2\&amp;quot;}&amp;quot;  # { #   &amp;quot;.tag&amp;quot;: &amp;quot;folder&amp;quot;, #   &amp;quot;name&amp;quot;: &amp;quot;test_414984_2&amp;quot;, #   &amp;quot;path_lower&amp;quot;: &amp;quot;/test_414984_2&amp;quot;, #   &amp;quot;path_display&amp;quot;: &amp;quot;/test_414984_2&amp;quot;, #   &amp;quot;parent_shared_folder_id&amp;quot;: &amp;quot;1990815600&amp;quot;, #   &amp;quot;id&amp;quot;: &amp;quot;id:AAFTM3U8MQAAAAAAAAADiQ&amp;quot;, #   &amp;quot;shared_folder_id&amp;quot;: &amp;quot;7575688240&amp;quot;, #   &amp;quot;sharing_info&amp;quot;: { #     &amp;quot;read_only&amp;quot;: false, #     &amp;quot;parent_shared_folder_id&amp;quot;: &amp;quot;1990815600&amp;quot;, #     &amp;quot;shared_folder_id&amp;quot;: &amp;quot;7575688240&amp;quot;, #     &amp;quot;traverse_only&amp;quot;: false, #     &amp;quot;no_access&amp;quot;: false #   } # } I can then use that shared folder ID (7575688240 in my case) with&amp;nbsp;/2/sharing/add_folder_member to add members to just this new folder.  curl -X POST https://api.dropboxapi.com/2/sharing/add_folder_member \     --header &amp;quot;Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;&amp;quot; \     --header &amp;quot;Dropbox-API-Select-User: &amp;lt;TEAM_MEMBER_ID&amp;gt;&amp;quot; \     --header 'Dropbox-API-Path-Root: {&amp;quot;.tag&amp;quot;: &amp;quot;root&amp;quot;, &amp;quot;root&amp;quot;: &amp;quot;1990815600&amp;quot;}' \     --header &amp;quot;Content-Type: application/json&amp;quot; \     --data &amp;quot;{\&amp;quot;shared_folder_id\&amp;quot;: \&amp;quot;7575688240\&amp;quot;,\&amp;quot;members\&amp;quot;: [{\&amp;quot;member\&amp;quot;: {\&amp;quot;.tag\&amp;quot;: \&amp;quot;email\&amp;quot;,\&amp;quot;email\&amp;quot;: \&amp;quot;user@example.com\&amp;quot;}}]}&amp;quot;" target="_self"&gt;listing&amp;nbsp;Dropbox as a dependency as shown here&lt;/A&gt;, like this:&lt;/P&gt;
&lt;PRE&gt;    implementation 'com.dropbox.core:dropbox-core-sdk:3.1.3'&lt;/PRE&gt;
&lt;P&gt;That should take care of downloading the&amp;nbsp;Dropbox library and its dependencies for you. That way you don't have to include all of them yourself. (Either way, you shouldn't have 'dropbox-android-sdk', as that's an old and now retired SDK.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 17:22:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/415796#M22421</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-30T17:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: okhttp not found, migrating to Android developer studio (gradle)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/415802#M22422</link>
      <description>&lt;P&gt;changed dependencies&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;//implementation files('libs/okio-1.13.0.jar')&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;//implementation files('libs/okhttp-3.8.1.jar')&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;//implementation 'com.squareup.okhttp3:3.0.1'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;//implementation files('libs/picasso-2.5.2.jar')&lt;BR /&gt;&lt;/SPAN&gt;implementation &lt;SPAN&gt;'com.dropbox.core:dropbox-core-sdk:3.1.3'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;//implementation files('libs/dropbox-android-sdk.jar')&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;//implementation files('libs/dropbox-core-sdk-3.0.3.jar')&lt;BR /&gt;&lt;/SPAN&gt;implementation files(&lt;SPAN&gt;'libs/httpmime-4.0.3.jar'&lt;/SPAN&gt;)&lt;BR /&gt;implementation files(&lt;SPAN&gt;'libs/jackson-core-2.7.4.jar'&lt;/SPAN&gt;)&lt;BR /&gt;implementation files(&lt;SPAN&gt;'libs/json_simple-1.1.jar'&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;now i get&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;failed&lt;/LI&gt;&lt;LI&gt;testproject/src/main/java/com/dropbox/core/examples/android/DropboxClientFactory.java&lt;/LI&gt;&lt;LI&gt;cannot access OkHttpClient class file for okhttp3.OkHttpClient not found&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;testproject&lt;/SPAN&gt;/src/main/java/com/dropbox/core/examples/android/PicassoClient.java&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;C:\test\testproject\src\main\java\com\dropbox\core\examples\android\DropboxClientFactory.java:18: error: cannot access OkHttpClient&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .withHttpRequestor(new OkHttp3Requestor(OkHttp3Requestor.defaultOkHttpClient()))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;BR /&gt;&amp;nbsp; class file for okhttp3.OkHttpClient not found&lt;BR /&gt;&lt;FONT&gt;C:\test\testproject&lt;/FONT&gt;\src\main\java\com\dropbox\core\examples\android\PicassoClient.java:19: error: cannot access OkHttpClient&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .downloader(new OkHttpDownloader(context))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; ^&lt;BR /&gt;&amp;nbsp; class file for com.squareup.okhttp.OkHttpClient not found&lt;BR /&gt;Note: Some input files use or override a deprecated API.&lt;BR /&gt;Note: Recompile with -Xlint:deprecation for details.&lt;BR /&gt;2 errors&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;cannot access OkHttpClient class file for com.squareup.okhttp.OkHttpClient not found&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 17:51:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/415802#M22422</guid>
      <dc:creator>swright1512</dc:creator>
      <dc:date>2020-04-30T17:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: okhttp not found, migrating to Android developer studio (gradle)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/415820#M22423</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if relevant but, when i look at the PicassoClient.java source&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is telling me the following imports are unused.&amp;nbsp; Has there been compiler change?&amp;nbsp; It is not detecting the usage of OkHttpDownloader.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.squareup.picasso.OkHttpDownloader&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.squareup.picasso.Picasso&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;package &lt;/SPAN&gt;com.dropbox.core.examples.android&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;android.content.Context&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.dropbox.core.v2.DbxClientV2&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.squareup.picasso.OkHttpDownloader&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.squareup.picasso.Picasso&lt;SPAN&gt;;&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; * Singleton instance of Picasso pre-configured&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt; */&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;public class &lt;/SPAN&gt;PicassoClient {&lt;BR /&gt;    &lt;SPAN&gt;private static &lt;/SPAN&gt;Picasso &lt;SPAN&gt;sPicasso&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    public static void &lt;/SPAN&gt;&lt;SPAN&gt;init&lt;/SPAN&gt;(Context context&lt;SPAN&gt;, &lt;/SPAN&gt;DbxClientV2 dbxClient) {&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;// Configure picasso to know about special thumbnail requests&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;sPicasso &lt;/SPAN&gt;= &lt;SPAN&gt;new &lt;/SPAN&gt;Picasso.Builder(context)&lt;BR /&gt;                .downloader(&lt;SPAN&gt;new &lt;/SPAN&gt;OkHttpDownloader(context))&lt;BR /&gt;                .addRequestHandler(&lt;SPAN&gt;new &lt;/SPAN&gt;FileThumbnailRequestHandler(dbxClient))&lt;BR /&gt;                .build()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;public static &lt;/SPAN&gt;Picasso &lt;SPAN&gt;getPicasso&lt;/SPAN&gt;() {&lt;BR /&gt;        &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;sPicasso&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 19:12:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/415820#M22423</guid>
      <dc:creator>swright1512</dc:creator>
      <dc:date>2020-04-30T19:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: okhttp not found, migrating to Android developer studio (gradle)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/415830#M22424</link>
      <description>&lt;P&gt;Apologies, I should have pointed out OKHttp in&amp;nbsp;particular is a bit of a special case here, since it's considered optional when using the SDK. I see you're trying to use the Android example app though, which does use OKHttp, so you'll want to include that dependency. There's a note about this here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java#when-i-use-okhttp3requestor-in-dbxrequestconfig-i-get-errors-like-class-file-for-okhttp3okhttpclient-not-found" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java#when-i-use-okhttp3requestor-in-dbxrequestconfig-i-get-errors-like-class-file-for-okhttp3okhttpclient-not-found&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 19:57:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/415830#M22424</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-30T19:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: okhttp not found, migrating to Android developer studio (gradle)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/415838#M22426</link>
      <description>&lt;P&gt;in my application i import the example and use DropboxClientFactory.getClient()&amp;nbsp; etc....&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.dropbox.core.examples.android.*&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now have the following dependencies, I have tried it with or without { implementation 'com.squareup.okhttp3:okhttp:3.11.0' }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dependencies {&lt;/P&gt;&lt;P&gt;&amp;nbsp; implementation 'com.squareup.okhttp3:okhttp:3.11.0'&lt;/P&gt;&lt;P&gt;&amp;nbsp; implementation 'com.squareup.picasso:picasso:2.5.2'&lt;/P&gt;&lt;P&gt;&amp;nbsp; implementation 'com.dropbox.core:dropbox-core-sdk:3.1.3'&lt;/P&gt;&lt;P&gt;&amp;nbsp; api 'com.squareup.okhttp3:okhttp:3.11.0'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still getting the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cannot access OkHttClient class file for com.squareup.okhttp.OkHttpClient not found&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 20:47:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/415838#M22426</guid>
      <dc:creator>swright1512</dc:creator>
      <dc:date>2020-04-30T20:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: okhttp not found, migrating to Android developer studio (gradle)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/416074#M22431</link>
      <description>&lt;P&gt;I'm not sure I understand your current setup. To clarify, are you trying to import &lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android" target="_self"&gt;the official Android example for the&amp;nbsp;Dropbox Java SDK&lt;/A&gt; into your own third party application? That's just intended as a sample, and not something you would import into your own app. You can follow &lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android" target="_self"&gt;the instructions here to build and run that example app&lt;/A&gt; itself. I&amp;nbsp;recommend trying to do so as a test of your development environment, unrelated to your own app.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Though note that when you do so, it's probably easier to just install a released version of the Dropbox SDK rather than compile it locally (as the example is configured to do by default), as long as you don't need to make changes to the Dropbox SDK. That is, in &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/build.gradle" target="_self"&gt;the sample's build.gradle&lt;/A&gt;, replace:&lt;/P&gt;
&lt;PRE class="lang-java prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;implementation group&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="str"&gt;'com.dropbox.core'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; name&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="str"&gt;'dropbox-core-sdk'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; version&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="str"&gt;'0-SNAPSHOT'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; changing&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;true&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;with:&lt;/P&gt;
&lt;PRE class="lang-java prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;implementation &lt;/SPAN&gt;&lt;SPAN class="str"&gt;'com.dropbox.core:dropbox-core-sdk:3.1.3'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would likely be helpful to see if Android Studio can build and run that for you as a validation of your Android Studio environment.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 15:08:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/416074#M22431</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-01T15:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: okhttp not found, migrating to Android developer studio (gradle)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/417079#M22460</link>
      <description>&lt;P&gt;I got my app to build in ADS, even though i did not actually resolve the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem reported was with the PicssoClient.java as posted above,&amp;nbsp; I was not actually using it, so removed and the App built ok&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I will have to try to make a new project with the example files to see if I can build it.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 22:45:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/417079#M22460</guid>
      <dc:creator>swright1512</dc:creator>
      <dc:date>2020-05-04T22:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: okhttp not found, migrating to Android developer studio (gradle)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/417737#M22497</link>
      <description>&lt;P&gt;So I created a new project with ADS, &amp;nbsp; added the dropbox java files.&amp;nbsp; added the dependencies to the build.gradle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the same build error, that I get with my App.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Project contains empty activity and code from example dropbox project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;link to zip of project folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;A href="https://www.dropbox.com/s/7r7o4ymzupr1fx9/droptest.zip?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/7r7o4ymzupr1fx9/droptest.zip?dl=0&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 20:45:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/417737#M22497</guid>
      <dc:creator>swright1512</dc:creator>
      <dc:date>2020-05-06T20:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: okhttp not found, migrating to Android developer studio (gradle)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/418052#M22503</link>
      <description>&lt;P&gt;It looks like you're actually using old code, from before &lt;A href="https://github.com/dropbox/dropbox-sdk-java/commit/c710ef80f1c2700031baad7c615dc9934162c090" target="_self"&gt;this change in 2018&lt;/A&gt; (and maybe are mixing old code with new dependencies, or vice versa?). In any case, please use the latest version of the&amp;nbsp;Dropbox library, sample code, and dependencies for compatibility.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The latest release of the&amp;nbsp;Dropbox Java library itself is currently &lt;A href="https://github.com/dropbox/dropbox-sdk-java/releases/tag/v3.1.3" target="_self"&gt;v3.1.3&lt;/A&gt;, and you can find &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/build.gradle" target="_self"&gt;the example Android app and instructions here&lt;/A&gt;, including the build.gradle listing &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/build.gradle" target="_self"&gt;the dependencies for the latest version of the example app&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 17:10:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/418052#M22503</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-07T17:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: okhttp not found, migrating to Android developer studio (gradle)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/418069#M22504</link>
      <description>The reason I used that code and library versions is because the exact same code and library build OK in the existing project with eclipse.&lt;BR /&gt;&lt;BR /&gt;Will the latest versions be OK with minimum SDK version 8?</description>
      <pubDate>Thu, 07 May 2020 17:59:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/418069#M22504</guid>
      <dc:creator>swright1512</dc:creator>
      <dc:date>2020-05-07T17:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: okhttp not found, migrating to Android developer studio (gradle)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/418085#M22506</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android#requirements" target="_self"&gt;The Android example app only supports SDK 19 and up&lt;/A&gt;. The&amp;nbsp;Dropbox library itself doesn't have a documented minimum supported Android&amp;nbsp;SDK level, but I would expect it to work on any SDK level where its dependencies can work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 18:59:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/okhttp-not-found-migrating-to-Android-developer-studio-gradle/m-p/418085#M22506</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-07T18:59:53Z</dc:date>
    </item>
  </channel>
</rss>

