Hi I am trying to experiment with gcm but unable to make it work. Don\'t know where I am messing with it, below is the error I am getting. I am trying to deploy my applicati
I met this same issue in android studio
what solve this is to let company domain to be all small letters,
try to write activity name follow by "." Instead of
<activity android:name="MainActivity"
android:label="@string/app_name">
use
<activity android:name=".MainActivity"
android:label="@string/app_name">
Change name package with Caps letters to little letters.
Instead of:
<permission android:name="android.permission.C2D_MESSAGE" android:protectionLevel="signature"/>
to:
<uses-permission android:name="android.permission.C2D_MESSAGE" android:protectionLevel="signature"/>
Try that.
I had this problem. My device memory was full. I solved my problem with freeing device memory.
There's issue about this: http://code.google.com/p/android/issues/detail?id=37658 Capital letters can't be used in package names within permissions. You got (same as me) into difficult situation when you have deployed application with package name like this and you need to use GCM. I tried to use some kind of short form of permission:
<permission android:name=".permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name=".permission.C2D_MESSAGE" />
I also defined service in the same way. It had to be in application package. It worked on Android 4.3. Probably on 4.2 also. I know that on 4.0.3 it didn't.