Crash: startActivity in Android API 34

Does anyone know what this error means and what I can do about it:


Process: com.familiekoning.radionedplus, PID: 3772 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.familiekoning.radionedplus/com.familiekoning.radionedplus.MainActivity}: java.lang.SecurityException: com.familiekoning.radionedplus: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts at*

It happens with:

val intent = Intent(this,
startActivity(intent) //CRASH in Android 34

and only in Android API34

Also a crash when I make the intent explicit with the same error:

val explicitIntent = Intent(this,
startActivity(explicitIntent) //CRASH in Android 34

Thanks for your help ;)


  • Resolved in the comments:

    In MainActivity I indeed registered some receivers without a third parameter: RECEIVER_EXPORTED. I changed that and now it works fine.

    As Yunus linked in the comments, this is one of the new security features for Android 14 (API level 34) as documented at .