java.lang.NoClassDefFoundError: Landroidx/localbroadcastmanager/content/LocalBroadcastManager
Issue
In the androidx project, I write these code as bellow.
After running on the phone, it throws an exception.
Solution
Add the dependency of LocalBroadCastManager
from AndroidX to the build.gradle
dependencies: