Android Studio on Ubuntu with NVM
How to correctly setup up NVM on Ubuntu to work with Android Studio
Use Android Studio with NVM on Ubuntu
This is probably the shortest post I've ever written, but I nevertheless think that it may help you out. If you're setting up Android Studio for React Native development on Ubuntu version 20 or higher, you may need to call a single command if you want to make it work with NVM, the node version manager.
This single line helped me resolve the issue. It was mentioned in a Github-issue.