2015-04-23 28 views
4

我已經創建了一個Android類庫,包括廣播接收器的實現:Xamarin - 「Android.Content.IntentFilter」不是一個屬性類

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

    } 
} 

當我嘗試建立我越來越「'Android.Content.IntentFilter'」消息不屬於一個屬性類「

我需要做什麼來構建它?

回答

12

您需要爲Android.Content和Android.App添加使用語句

相關問題