在我的app中,我在第一次使用notification的时候出现错误。

报错:android notification pendinintent issue wrong 3rd argument type
下面的报错截图
android notification pendinintent issue wrong 3rd argument type
分析:我只需要把PendingIntent.getActivity() 改为 PendingIntent.getActivities()

下图为官方文档
android notification pendinintent issue wrong 3rd argument type

相关文章:

  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2021-04-25
  • 2021-06-21
  • 2021-06-27
猜你喜欢
  • 2022-01-20
  • 2021-08-14
  • 2021-09-03
  • 2021-05-25
  • 2022-12-23
  • 2021-09-22
相关资源
相似解决方案