I had this issue on Android 10,
Changed targetSdkVersion 29
to targetSdkVersion 28
issue resolved. Not sure what is the actual problem.
I think not a good practice, but it worked.
before:
compileSdkVersion 29
minSdkVersion 14
targetSdkVersion 29
Now:
compileSdkVersion 29
minSdkVersion 14
targetSdkVersion 28