com.google.android.gms.common.internal.safe parcel.safe parcelable not found

后端 未结 6 1178
走了就别回头了
走了就别回头了 2020-12-05 16:44

I am trying to add notification services to my app using FCM and tutorial given on https://www.simplifiedcoding.net/firebase-cloud-messaging-android/ Everything has done and

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 17:30

    Use something like this:

    dependencies {
        compile 'com.google.android.gms:play-services:11.0.1'
        compile 'com.google.firebase:firebase-core:11.0.1'
        compile 'com.google.firebase:firebase-messaging:11.0.1'
    }
    apply plugin: 'com.google.gms.google-services'
    

    Make sure apply plugin comes below dependencies.

提交回复
热议问题