使用新的Parse 1.7 Android API的IllegalStateException

使用新的Parse 1.7 Android API的IllegalStateException,android,push-notification,parse-platform,Android,Push Notification,Parse Platform,我正在将Parse SDK更新到1.7版,在使用方法ParsePush.subscribeInBackground()时发生以下崩溃: 10-02 12:56:06.426:E/AndroidRuntime(5441):java.lang.IllegalStateException:为了使用ParsePush.subscribe或ParsePush.unsubscribe方法,必须将以下内容添加到AndroidManifest.xml中: 10-02 12:56:06.426:E/Android

我正在将Parse SDK更新到1.7版,在使用方法
ParsePush.subscribeInBackground()
时发生以下崩溃:

10-02 12:56:06.426:E/AndroidRuntime(5441):java.lang.IllegalStateException:为了使用ParsePush.subscribe或ParsePush.unsubscribe方法,必须将以下内容添加到AndroidManifest.xml中:
10-02 12:56:06.426:E/AndroidRuntime(5441):
10-02 12:56:06.426:E/AndroidRuntime(5441):

10-02 12:56:06.426:E/AndroidRuntime(5441):我已经在ma AndroidManifest.xml中提到了所有行。

我刚刚注意到解析指南页面上的崩溃和片段文本有所不同-应该是

<receiver android:name="com.parse.ParsePushBroadcastReceiver" android:exported="false">
    <intent-filter>
        <action android:name="com.parse.push.intent.RECEIVE" />
        <action android:name="com.parse.push.intent.DELETE" />
        <action android:name="com.parse.push.intent.OPEN" />
    </intent-filter>
</receiver>

而不是指南所说的:

<receiver android:name="com.parse.ParsePushBroadcastReceiver" android:exported="false">
    <intent-filter>
        <action android:name="com.push.intent.RECEIVE" />
        <action android:name="com.push.intent.DELETE" />
        <action android:name="com.push.intent.OPEN" />
    </intent-filter>
</receiver>


(注意动作名称中缺少
.parse

谢谢!我花了太长时间才注意到。
<receiver android:name="com.parse.ParsePushBroadcastReceiver" android:exported="false">
    <intent-filter>
        <action android:name="com.push.intent.RECEIVE" />
        <action android:name="com.push.intent.DELETE" />
        <action android:name="com.push.intent.OPEN" />
    </intent-filter>
</receiver>