Cannot resolve symbol 'GoogleCloudMessaging' GCM

前端 未结 6 1594
遇见更好的自我
遇见更好的自我 2020-12-03 03:09

I am trying to get GCM working in my app (to notify users when our hours change, or when we have any promos going on), but I keep getting the error Cannot

6条回答
  •  离开以前
    2020-12-03 03:24

    If you are in Android Studio, make sure that in your build.gradle you have:

    dependencies {
        compile 'com.google.android.gms:play-services:7.8.0'
    }
    

    and then run build.

    That worked for me.

提交回复
热议问题