升级Android14后广播报错:
One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts
按照搜出来的处理办法在registerReceiver方法补上第三个参数RECEIVER_EXPORTED(Context.RECEIVER_EXPORTED)
但是补上之后出现错误:

鼠标划上去提示:
Must be one or more of: Context. RECEIVER_VISIBLE_TO_INSTANT_APPS, android. content. Context. RECEIVER_EXPORTED, android. content. Context. RECEIVER_NOT_EXPORTED
让换成 Context.RECEIVER_VISIBLE_TO_INSTANT_APPS 。换完是没问题了,但是app还是进不去闪退。
求指教