Android studio database inspector does not show any databases

If you are using Android Studio Arctic Fox | 2020.3.1 then Database Inspector is under App Inspection. As below.

enter image description here


In my case, it showed me the same process a lot of times. And none of them worked.

The solution was Invalidating the Cache:

File -> Invalidate Caches/Restart -> Invalidate and restart

After that everything started working again.


I solved this problem by uninstall and then installing app again. Formerly when I had face to this issue, I could run database inspector just by close/open app but now it start working just by uninstalling

Update

after more working with database inspector I understand some times it just needs a few seconds to connect and no need to do anything else