LocalBroadcastManager stops Android plugin method

I’m working on an Android plugin, but the LocalBroadcastManager.getInstance() function stops the function call

public static void initialize () {
        Log.i(TAG, "initializing");
        unityActivity = UnityPlayer.currentActivity;
        Log.i(TAG, unityActivity.getLocalClassName());
        //register broadcast reciever
        IntentFilter filter = new IntentFilter();
        filter.addAction(WifiDirectHandler.Action.SERVICE_CONNECTED);
        filter.addAction(WifiDirectHandler.Action.MESSAGE_RECEIVED);
        filter.addAction(WifiDirectHandler.Action.DEVICE_CHANGED);
        filter.addAction(WifiDirectHandler.Action.WIFI_STATE_CHANGED);
        LocalBroadcastManager.getInstance(unityActivity.getApplicationContext()).registerReceiver(broadcastReceiver, filter);
        Log.i(TAG, "Broadcast reciever registered");
        //bind service
        Intent intent = new Intent(unityActivity, WifiDirectHandler.class);
        boolean bound = unityActivity.bindService(intent, wifiServiceConnection, Context.BIND_AUTO_CREATE);
        Log.i(TAG, "bound: "+bound);
    }

When I call initialize from C#, I see

“intializing”

“com.unity3d.player.UnityActivity”

and then nothing.
There is no error printed to logcat that I can see. What should I do to make sure I see “Broadcast receiver registered”

I figured out the issue: Gradle build didn’t include the “android support v4” jar in the AAR file. Solution is to manually copy and paste the support jar file into the Aar