截图说的很清楚了啊,IllegalArgumentException,非法参数。
有没有什么方法可以根据这个问题提示找到代码中相应位置上的问题参数?(在logcat中找问题有没有什么方法或是依据啊?)谢谢,
在该类的onCLick方法里,31行。建议你先把代码的行数显示出来。这样方便找。
notification.setLatestEventInfo里面,第4个参数你参入null,它是非法的。
在它前面应该加上:
Intent notificationIntent = new Intent(this,XXX.class); //点击该通知后要跳转的Activity
PendingIntent contentIntent = PendingIntent.getActivity(this,0,notificationIntent,0);
contentIntent是你应该参入的参数,而不是null