0
我试图在我的android应用程序中使用C2DM,但添加后我无法安装应用程序。我收到此错误“安装错误:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED”。但我看不出什么是错的。安装android应用程序时出错
任何知道我做错了的人?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="Wordy.Game"
android:versionCode="1"
android:versionName="0.1"
android:installLocation="preferExternal">
<uses-sdk android:minSdkVersion="8" />
<permission
android:name="Wordy.Game.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission
android:name="Wordy.Game.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<application android:label="@string/app_name" android:icon="@drawable/wordy">
<activity android:name="Main"
android:label="@string/app_name" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver
android:name=".C2DMRegistrationReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter >
<action android:name="com.google.android.c2dm.intent.REGISTRATION" >
</action>
<category android:name="Wordy.Game" />
</intent-filter>
</receiver>
<receiver
android:name=".C2DMRegistrationReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter >
<action android:name="com.google.android.c2dm.intent.RECEIVE" >
</action>
<category android:name="Wordy.Game" />
</intent-filter>
</receiver>
<activity android:name="Result" android:label="@string/app_name" android:screenOrientation="portrait" />
<activity android:name="PlayField" android:label="@string/app_name" android:screenOrientation="portrait" />
<activity android:name="Game" android:label="@string/app_name" android:screenOrientation="portrait" />
<activity android:name="News" android:label="@string/app_name" android:screenOrientation="portrait" />
<activity android:name="PlayOnline" android:label="@string/app_name" android:screenOrientation="portrait" />
<activity android:name="UsersOnline" android:label="@string/app_name" android:screenOrientation="portrait" />
</application>
</manifest>
我会尝试,但它已经工作,然后我添加C2DM的东西。 – Daniel
好吧,我明白了。它一直工作,直到你安装了C2DM。已经看过:http://stackoverflow.com/questions/6198097/c2dm-permission-c2d-message-gives-installation-error他似乎也有同样的问题 – giZm0
我看了它,然后我发布我的问题,但我没有找到任何帮助我的东西。我已经使用这个教程http://www.vogella.com/articles/AndroidCloudToDeviceMessaging/article.html – Daniel