I am using a Arch Linux system so the AndroidStudio installation is curated by the system itself. So I do not know what do you mean about two versions of it, but I provide some further information.
Android Studio 4.2.1
Build #AI-202.7660.26.42.7351085, built on May 10, 2021
Runtime version: 11.0.8+0-b944-P17168821 amd64
VM: OpenJDK 64-Bit Server VM by N/A
Linux 5.12.5-zen1-1-zen
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 4
Registry: external.system.auto.import.disabled=true
Current Desktop: GNOME 40.1.0
X11
Garuda Linux; ID version: rolling
What do you read inside the log files to say that? What's the issue about the build?
Regards