添加到gradle& amp;之后无法解析GCMReceiver库

时间:2016-11-22 17:54:19

标签: android android-studio google-cloud-messaging

我一直关注有关使用SDK管理器安装Google Play服务的帖子,确保.jar文件位于我的软件包&libs文件夹中并将依赖文件放入。

我仍然无法解决错误。

清单:

<receiver
            android:name="com.google.android.gcm.GCMBroadcastReceiver"
            android:permission="com.google.android.c2dm.permission.SEND" >
            <intent-filter>
                <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
                <category android:name="mypackage" />
            </intent-filter>
        </receiver>

GCMIntentService

无法解析符号GCMBaseIntentService

public class GCMIntentService extends GCMBaseIntentService {

enter image description here

enter image description here

enter image description here

0 个答案:

没有答案