1

我按照http://developer.xtify.com/display/sdk/Getting+Started+with+Google+Cloud+Messaging中的说明通过 Xtify 实现 android 的推送消息,并执行我的应用程序我收到此错误:

查找提供商信息 com.example.gcmessaging.XTFY_PROVIDER 失败

在清单中,我在接收者标签上:

....
android:name="com.xtify.sdk.db.Provider" android:authorities="com.example.gcmessaging.XTIFY_PROVIDER" android:exported="false"

你能帮我看看我哪里错了吗?我会很感激帮助。

谢谢

4

1 回答 1

1

您可能没有添加正确的包名称,您会发现它定义在 AndroidManifest.xml 文件的顶部:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.site.yourapp" ...>

然后将包名称添加到提供程序节点:

<provider
  android:name="com.xtify.sdk.db.Provider"
  android:authorities="com.site.yourapp.XTIFY_PROVIDER"
  android:exported="false" />

如果它不适合你,请告诉我。

于 2013-05-09T17:01:50.327 回答