I just migrated to androidx via the option Refactor -> Move to Androidx
option in Android Studio.
By default the build.gradle
file was using:
implementation 'androidx.appcompat:appcompat:1.0.0'
I am using LocalBroadcastManager in many places in the project. I could perfectly use import androidx.localbroadcastmanager.content.LocalBroadcastManager
with the above v1.0.0 of the androidx.appcompat
. But when I update it to 1.1.0 as:
implementation 'androidx.appcompat:appcompat:1.1.0'
The import is not working. I am getting Unresolved reference : localbroadcastmanager
error.
I have tried to clean project and also rebuild project multiple times and the issue still exists.
Any solution? Thanks.