Android Dropbox SDK清单设置

Android Dropbox SDK清单设置,android,android-manifest,dropbox,Android,Android Manifest,Dropbox,你知道为什么我在为Android Dropbox SDK调用getSession().startAuthentication()时会出现这个错误吗 : FATAL EXCEPTION: main : java.lang.IllegalStateException: URI scheme in your app's manifest is not set up correctly. You should have a com.dropbox.client2.android.AuthActivity

你知道为什么我在为Android Dropbox SDK调用
getSession().startAuthentication()
时会出现这个错误吗

: FATAL EXCEPTION: main
: java.lang.IllegalStateException: URI scheme in your app's manifest is not set up correctly. You should have a com.dropbox.client2.android.AuthActivity with the scheme: db-CHANGE_ME
然而,我的AndroidManifest.xml在《入门指南》中的
中包含以下内容

<activity
  android:name="com.dropbox.client2.android.AuthActivity"
  android:launchMode="singleTask"
  android:configChanges="orientation|keyboard">
  <intent-filter>
    <!-- Change this to be db- followed by your app key -->
    <data android:scheme="db-MYKEYISHERE" />
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.BROWSABLE"/>
    <category android:name="android.intent.category.DEFAULT" />
  </intent-filter>
</activity>

不知道为什么会出现这种情况,但project clean做到了这一点(我几天前将代码添加到清单中,此后进行了多次清理)

如果您实际看到“db-CHANGE\u ME”(即,这不是用于隐藏应用程序密钥的占位符),则表示您没有在应用程序的Java代码中更新应用程序密钥。该错误消息输出Java代码中提供的密钥,并期望它与清单中的密钥匹配


您的干净构建可能选择了一些以前未构建的Java更改。

对于那些面临此问题的人,如果您像我一样,可能不会注意一点细节,请查看您的清单:

<intent-filter>
    <data android:scheme="db-APP_KEY" />
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.BROWSABLE" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>

当我复制应用程序密钥时,我忘记将“db”部分添加到我的答案中

例如:

<intent-filter>
    <data android:scheme="db-hafsa324dasd" />
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.BROWSABLE" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
 <data android:scheme="db-APP_KEY" />

应该是:

 <data android:scheme="db-hafsa324dasd" />

不应是:

<data android:scheme="hafsa324dasd" />

和。。。然后你完全删除了你的另一个答案?你剩下的东西呢?这本身并不是一个答案。此外,在将来,您可以使用“编辑”按钮更正您的答案和帖子。