GCMã®å®è£ ä¸ã®IllegalAccessExceptionã«æ©ã¾ããã件
Androidã§GCMãåãåãããã®ãµã¼ãã¹GCMIntentServiceãå®è£ ãã¦è©¦ãã«åãããæã«ãIllegalAccessExceptionãçºçãã¦ãã
java.lang.IllegalAccessException: access to constructor not allowed
ãã®å°ãä¸ãè¦ãã¨ã
Could not find class android.app.Notification$Builder
ãªãã¦åºã¦ãããããããåå ã ã¨æã£ã¦ããããã¨è©¦è¡é¯èª¤ãããã©ãªããªã解決ã§ããªãã£ãã
ãã°ãã試è¡é¯èª¤ããå¾ã«ãããä¸åº¦ã¡ãã»ã¼ã¸ã確èªããããaccess to constructor not allowedãã£ã¦ãããã£ã¦ãã³ã³ã¹ãã©ã¯ã¿ã«ã¢ã¯ã»ã¹ã§ããªãã£ã¦ãã¨ã ããã¨æã£ã¦GCMIntentServiceã®ã³ã¼ãã確èªããã
protected GCMIntentService() { super(GCM_SENDER_ID); }
ã³ã³ã¹ãã©ã¯ã¿ã protected ã«ãªã£ã¨ãããï¼
public ã«ä¿®æ£ããããã£ããåãããã«ãªã£ãã
èãã¦ã¿ãã¨ããã®ã³ã³ã¹ãã©ã¯ã¿ã£ã¦ Eclipse ã®ã¯ã¤ãã¯ãã£ãã¯ã¹ã§çæãããã ã£ã¦ãã¨ãæãåºãã¦ãã³ã³ã¹ãã©ã¯ã¿ãåé¤ãã¦ãããä¸åº¦ã¯ã¤ãã¯ãã£ãã¯ã¹ã§çæãã¦ã¿ããããã£ã±ã protected ã§çæãããã
ããã«ããã人ããã£ããå¤ãããããªãããªã¼ã