Problems implementing the new GCM Client for Android

前端 未结 2 1634
悲哀的现实
悲哀的现实 2020-12-19 08:39

I\'m trying to implement the new GCM Client on Android following the guidelines from Google (https://developers.google.com/cloud-messaging/android/client). I\'m

2条回答
  •  醉酒成梦
    2020-12-19 09:07

    I saw that the method getNoBackupFilesDir is found in android.support.v4.content.ContextCompat.

    Seems that the problem was that I had an old appcompat-v7 included in the project. Download with the SDK manager the last version of Android Support Library and then follow the steps for Adding libraries with resources and add the library to your application project.

提交回复
热议问题