android studio crashing on linux after being launched from npx

You have to point to the actual android studio executable file (.sh file), not to the folder where Android Studio is