<?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: Java API failure after Proguard handling in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-failure-after-Proguard-handling/m-p/170207#M6355</link>
    <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/issues/58" rel="nofollow noreferrer"&gt;https://github.com/dropbox/dropbox-sdk-java/issues/58&lt;/A&gt; ]&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:07:41 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-06-16T01:07:41Z</dc:date>
    <item>
      <title>Java API failure after Proguard handling</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-failure-after-Proguard-handling/m-p/170206#M6354</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am experiencing difficulties on Java API. My android app is working normally when Proguard setting "minifiEnabled" is set to false, but will be malfunction if set to true. The following log is the related detail.&lt;/P&gt;
&lt;PRE&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err: java.util.concurrent.ExecutionException: com.dropbox.core.BadRequestException: Error in call to API function "users/get_current_account": Invalid authorization value in HTTP header "Authorization": "Bearer".&amp;nbsp; Expecting "Bearer &amp;lt;oauth2-access-token&amp;gt;".&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.concurrent.FutureTask.report(FutureTask.java:94)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.concurrent.FutureTask.get(FutureTask.java:164)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at hk.com.fgoproduction.getdroplets.Lib.Common.ThisApplication.runOnBgAndJoin(ThisApplication.kt:58)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at hk.com.fgoproduction.getdroplets.Activity.MainActivity.threadExec(MainActivity.kt:187)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at hk.com.fgoproduction.getdroplets.Activity.MainActivity.dropboxStatus(MainActivity.kt:176)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at hk.com.fgoproduction.getdroplets.Activity.MainActivity.testAccessToken(MainActivity.kt:61)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at hk.com.fgoproduction.getdroplets.Activity.MainActivity.onCreate(MainActivity.kt:43)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at android.app.Activity.performCreate(Activity.java:6237)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at android.app.ActivityThread.-wrap11(ActivityThread.java)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at android.os.Handler.dispatchMessage(Handler.java:102)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at android.os.Looper.loop(Looper.java:148)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at android.app.ActivityThread.main(ActivityThread.java:5417)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Method.invoke(Native Method)&lt;BR /&gt;06-15 10:05:00.623 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)&lt;BR /&gt;06-15 10:05:00.624 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)&lt;BR /&gt;06-15 10:05:00.624 2823-2823/hk.com.fgoproduction.getdroplets W/System.err: Caused by: com.dropbox.core.BadRequestException: Error in call to API function "users/get_current_account": Invalid authorization value in HTTP header "Authorization": "Bearer".&amp;nbsp; Expecting "Bearer &amp;lt;oauth2-access-token&amp;gt;".&lt;BR /&gt;06-15 10:05:00.624 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.dropbox.core.DbxRequestUtil.unexpectedStatus(DbxRequestUtil.java:285)&lt;BR /&gt;06-15 10:05:00.624 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.dropbox.core.v2.DbxRawClientV2$1.execute(DbxRawClientV2.java:107)&lt;BR /&gt;06-15 10:05:00.624 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.dropbox.core.v2.DbxRawClientV2.executeRetriable(DbxRawClientV2.java:252)&lt;BR /&gt;06-15 10:05:00.624 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.dropbox.core.v2.DbxRawClientV2.rpcStyle(DbxRawClientV2.java:97)&lt;BR /&gt;06-15 10:05:00.624 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.dropbox.core.v2.users.DbxUserUsersRequests.getCurrentAccount(DbxUserUsersRequests.java:120)&lt;BR /&gt;06-15 10:05:00.624 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at hk.com.fgoproduction.getdroplets.DropboxAPI.AFile.isDropboxOk(AFile.kt:139)&lt;BR /&gt;06-15 10:05:00.624 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at hk.com.fgoproduction.getdroplets.Activity.MainActivity$dropboxStatus$1.run(MainActivity.kt:176)&lt;BR /&gt;06-15 10:05:00.624 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)&lt;BR /&gt;06-15 10:05:00.624 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.concurrent.FutureTask.run(FutureTask.java:237)&lt;BR /&gt;06-15 10:05:00.624 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)&lt;BR /&gt;06-15 10:05:00.624 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)&lt;BR /&gt;06-15 10:05:00.624 2823-2823/hk.com.fgoproduction.getdroplets W/System.err:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Thread.run(Thread.java:818)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the proguard-rules.pro is at the bottom&lt;/P&gt;
&lt;PRE&gt;-dontobfuscate&lt;BR /&gt;-optimizationpasses 5&lt;BR /&gt;-dontpreverify&lt;BR /&gt;-optimizations !code/simplification/cast,!field/*,!class/merging/*&lt;BR /&gt;&lt;BR /&gt;-keep public class * extends android.app.Activity&lt;BR /&gt;-keep public class * extends android.app.Appliction&lt;BR /&gt;-keep public class * extends android.app.Service&lt;BR /&gt;-keep public class * extends android.content.BroadcastReceiver&lt;BR /&gt;-keep public class * extends android.content.ContentProvider&lt;BR /&gt;-keep public class * extends android.app.backup.BackupAgentHelper&lt;BR /&gt;-keep public class * extends android.preference.Preference&lt;BR /&gt;-keep public class * extends android.view.View&lt;BR /&gt;-keep public class com.android.vending.licensing.ILicensingService&lt;BR /&gt;-keep class android.support.** {*;}&lt;BR /&gt;&lt;BR /&gt;-keep class com.dropbox.** {*;}&lt;BR /&gt;-dontwarn com.dropbox.**&lt;BR /&gt;&lt;BR /&gt;-keep class com.alibaba.fastjson.** {*;}&lt;BR /&gt;-dontwarn com.alibaba.fastjson.**&lt;BR /&gt;&lt;BR /&gt;-dontwarn okhttp3.**&lt;BR /&gt;-dontwarn com.squareup.okhttp.**&lt;BR /&gt;-dontwarn com.google.appengine.**&lt;BR /&gt;-dontwarn javax.servlet.**&lt;BR /&gt;&lt;BR /&gt;-keepattributes Signature&lt;BR /&gt;-keepattributes SourceFile,LineNumberTable&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have idea on this? It's a disaster that proguard could not be used as the app could not be published.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:32:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-failure-after-Proguard-handling/m-p/170206#M6354</guid>
      <dc:creator>L. Yeung1</dc:creator>
      <dc:date>2019-05-29T09:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Java API failure after Proguard handling</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-failure-after-Proguard-handling/m-p/170207#M6355</link>
      <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/issues/58" rel="nofollow noreferrer"&gt;https://github.com/dropbox/dropbox-sdk-java/issues/58&lt;/A&gt; ]&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:07:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-failure-after-Proguard-handling/m-p/170207#M6355</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-06-16T01:07:41Z</dc:date>
    </item>
  </channel>
</rss>

