我创建了一个Android类库,其中包括一个广播接收器的实现:
[IntentFilter(new string[] { "com.google.android.gcm.intent.RETRY" }, Categories = new string[] { "@PACKAGE_NAME@"})]
public class GcmBroadcastReceiver : BroadcastReceiver
{
public GcmBroadcastReceiver ()
{
}
}当我试图构建时,我得到的消息是“‘Android.Content.IntentFilter’不是一个属性类”
我需要做些什么才能完成这个任务?
发布于 2015-04-23 13:34:53
您需要为Android.Content和Android.App添加使用语句
https://stackoverflow.com/questions/29824275
复制相似问题