小编Chr*_* HG的帖子

Xamarin - 'Android.Content.IntentFilter'不是属性类

我创建了一个包含广播接收器实现的Android类库:

[IntentFilter(new string[] { "com.google.android.gcm.intent.RETRY" }, Categories = new string[] { "@PACKAGE_NAME@"})]
public class GcmBroadcastReceiver : BroadcastReceiver
{
    public GcmBroadcastReceiver ()
    {

    }
}
Run Code Online (Sandbox Code Playgroud)

当我尝试构建时,我收到消息"'Android.Content.IntentFilter'不是属性类"

我需要做什么才能进行构建?

android android-intent xamarin

4
推荐指数
1
解决办法
434
查看次数

标签 统计

android ×1

android-intent ×1

xamarin ×1