Launch offer for the first 500 accounts: $10K MTR free for 24 months + $100 credit →
    .io
    All Google Play Billing fixes
    Google Play
    November 22, 2026
    3 min read

    Android 14 crash: “One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified”

    This crash means code in your app, usually an old library, registers a broadcast receiver without saying whether other apps may send to it. Apps targeting Android 14 (API 34) and up must say so. Find the library in the stack trace, the first frame below registerReceiver that isn't Android's own, then upgrade it. Common culprits are old Play Billing Library versions, and React Native before 0.72.4 in debug builds.

    Symptom

    The app crashes on an Android 14+ device, often at launch or when a purchase or network screen opens:

    java.lang.SecurityException: com.example.app: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts
    
    • It started after raising targetSdkVersion to 34 or higher.
    • Older Android versions don't crash.

    Why it happens

    Android 14 changed context-registered broadcast receivers. Apps that target API 34+ must pass RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED when they call registerReceiver, unless the receiver listens only to system broadcasts. Libraries written before that rule omit the flag, and the system throws.

    Who registers the receiver How to tell Fixed in
    Old Play Billing Library Stack frame in com.android.billingclient Use Play Billing 6.1.0+ (current: 8.x)
    React Native core (debug only) Frame in com.facebook.react.devsupport.DevSupportManagerBase, debug builds only React Native 0.72.4 / 0.71.13
    react-native-iap bundling an old Billing version Frame in com.dooboolab.rniap, or Billing pulled in by it react-native-iap 12.13.1+ (Billing 6.1.0)
    Another SDK (network, payments, orientation…) Frame in that SDK's package That SDK's Android 14 release

    Confirm it

    1. Open the full stack trace and find ContextWrapper.registerReceiver or ContextImpl.registerReceiverInternal. The first frame below it that isn't android.* is the code to fix.
    2. If it's Play Billing, check which version actually ends up in the build:
    cd android && ./gradlew :app:dependencies --configuration releaseRuntimeClasspath | grep billing
    

    Another library can pull in an older Billing version than the one you declared.

    1. If it only crashes in debug, check npm ls react-native against the versions above.

    Fix

    1. Upgrade the library named in the stack trace to its Android 14-compatible release (see the table).
    2. Play Billing pulled in by another library: declare a current version yourself, so Gradle resolves the newer one:
    dependencies {
        implementation("com.android.billingclient:billing-ktx:8.0.0")
    }
    

    Check the library you're overriding supports that major version.

    1. Your own code: register with an explicit flag:
    ContextCompat.registerReceiver(
        context, receiver, filter, ContextCompat.RECEIVER_NOT_EXPORTED
    )
    

    Use RECEIVER_EXPORTED only if other apps must be able to send to it.

    1. React Native older than 0.71.13: upgrade React Native. Versions 0.70 and earlier don't support Android 14.
    2. Rebuild, then test on an Android 14+ device or emulator with the same target SDK.

    Stop it coming back

    • Raise targetSdkVersion in its own change, and test it on the newest Android version before release.
    • Run ./gradlew :app:dependencies after dependency updates, and check that billing and other SDKs resolve to versions you expect.
    • Watch crash reports for SecurityException right after each target SDK bump.

    If you use BillDog

    BillDog's Android SDK doesn't register any broadcast receivers, so it isn't the source of this crash. It depends on Play Billing Library 8.0.0 and targets API 36. Adding it also brings an Android 14-compatible Billing version into the build, but check the dependency tree in case another library forces an older one. This was checked against the source of the published Android SDK 1.1.1-beta.5.

    Related

    Sources

    Did this fix it?

    Frequently asked questions

    Why did it start when I didn't change any code?

    Raising targetSdkVersion to 34 turns the rule on, and Google Play requires a recent target. Code that registered receivers without a flag was fine before and crashes once the target is 34 or higher on an Android 14 device.

    Can I lower targetSdk to avoid it?

    Only briefly. Google Play requires a recent target API level for new apps and updates. Upgrade the library that registers the receiver instead.

    It only crashes in debug builds. Why?

    Old React Native versions register a debug-only receiver for the developer menu's reload command without the flag. Upgrade to React Native 0.72.4, 0.71.13 or later, where it's fixed.

    We use cookies and process your data to provide our services. By continuing, you agree to our Terms and Privacy Policy.