Java Android c2dm未知权限

Java Android c2dm未知权限,java,android,android-c2dm,Java,Android,Android C2dm,我看到一个非常类似的问题被贴出来,但他的解决方案没有帮助。我在logcat的警告部分看到未知权限 unknown permission com.google.android.c2dm.permission.C2D_MESSAGE in package com.upmc <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.upmc" android:versionCode="1"

我看到一个非常类似的问题被贴出来,但他的解决方案没有帮助。我在logcat的警告部分看到未知权限

unknown permission com.google.android.c2dm.permission.C2D_MESSAGE in package com.upmc

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.upmc"
android:versionCode="1"
android:versionName="1.0" >

<uses-permission android:name="android.permission.INTERNET" />
<permission android:name="com.upmc.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="com.google.android.c2dm.permission.C2D_MESSAGE" />

     <!-- registers the receiving class for a c2dm broadcast intent to be .C2DMBroadcastReceiver.-->

    <receiver android:name=".C2DMReceiver" android:permission="com.google.android.c2dm.permission.SEND">
        <intent-filter>
            <!--Action String being listened for, then calls parent registered receiver -->
            <action android:name="com.google.android.c2dm.intent.RECEIVE"/>
            <!-- still don't understand this  -->
            <catagory android:name="com.upmc" />
            <!-- must unregister intent filter when app is not running -->
        </intent-filter>
        <intent-filter>
            <!-- change here...action string pre-set by google?-->
            <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
            <!-- specify under what circumstances the action should be serviced -->
            <catagory android:name="com.upmc" />
        </intent-filter>
    </receiver>
包com.upmc中的
未知权限com.google.android.c2dm.permission.C2D_消息
难懂,我知道对不起

我也没有从谷歌得到任何回应。我已注册此应用程序,并已登录到谷歌帐户。有什么想法吗?

根据,要在应用程序中使用C2DM,必须注册以下权限

  • com.google.android.c2dm.permission.RECEIVE
  • android.permission.INTERNET

  • 同时请参考以下问题:

    您是否使用谷歌API构建项目?我偶尔会犯一个错误,不使用GoogleAPI进行构建,但如果没有,很容易检查和修复。右键单击您的项目,单击
    Properties
    ,单击左侧边栏中的
    Android
    ,然后检查您的构建目标。如果没有,请检查谷歌API版本。是的,我正在使用谷歌API构建。谢谢你的回复