I had the same problem, started working after I changed my minSdkVersion to 24 from 23, keeping my targetSdkVersion 34.
This problem generally start occurring after you have upgraded your project dependencies