Search Unity

android.app.IntentReceiverLeaked

Discussion in 'Getting Started' started by luoyu510183, May 30, 2019.

  1. luoyu510183

    luoyu510183

    Joined:
    Dec 25, 2018
    Posts:
    18
    I just wanted to close my Android App properly.
    Here is the exception message after I called Application.Quit():

    Activity com.unity3d.player.UnityPlayerActivity has leaked IntentReceiver com.unity3d.player.HFPStatus$1@c4a8e61 that was originally registered here. Are you missing a call to unregisterReceiver()?
    android.app.IntentReceiverLeaked: Activity com.unity3d.player.UnityPlayerActivity has leaked IntentReceiver com.unity3d.player.HFPStatus$1@c4a8e61 that was originally registered here. Are you missing a call to unregisterReceiver()?
    at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1351)
    at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1132)
    ...

    I found a solution that is adding this property {android:process=":UnityKillsMe"} in the manifest.xml file. But it totally didn't work.

    Could I close my app with no exception?