GCM : java.lang.noclassdeffounderror: com.google.android.gcm.GCMRegistrar

前端 未结 10 1037
深忆病人
深忆病人 2020-12-29 06:50

I am trying to register a device onto GCM using the following code:

    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceSta         


        
10条回答
  •  悲&欢浪女
    2020-12-29 07:33

    The SENDER_ID field should be the project ID from when you created your google api project. Read the beginning of this: http://developer.android.com/guide/google/gcm/gs.html#libs

    TAG should also be a string -> ""tag Name"

提交回复
热议问题