ubuntu is so weird it did not allow me to copy the android studio file into /opt .
solution
[sudo] password for ec:
Gtk-Message: 09:51:05.919: GtkDialog mapped without a transient parent. This is discouraged.
(nautilus:12124): Gtk-CRITICAL **: 09:51:05.920: gtk_widget_show: assertion 'GTK_IS_WIDGET (widget)' failed
** (nautilus:12124): CRITICAL **: 09:51:05.921: setup_side_pane_width: assertion 'priv->sidebar != NULL' failed
** (nautilus:12124): WARNING **: 09:51:06.045: Unable to get contents of the bookmarks file: Error opening file /root/.gtk-bookmarks: No such file or directory
** (nautilus:12124): WARNING **: 09:51:06.045: Unable to get contents of the bookmarks file: Error opening file /root/.gtk-bookmarks: No such file or directory
Nautilus-Share-Message: 09:51:06.135: Called "net usershare info" but it failed: Failed to execute child process “net” (No such file or directory)
solution
sudo -H nautilus
https://askubuntu.com/questions/1028399/cant-paste-files-or-create-folders-in-a-file-browser-on-my-root-or-opt
Android studio documentation is not dynamic it does not take into consideration the problems faced by users trying to follow their steps
Unpack the .zip file you downloaded to an appropriate location for your applications, such as within /usr/local/ for your user profile, or /opt/ for shared users.
https://developer.android.com/studio/install
ec@programming:~$ sudo -H nautilus[sudo] password for ec:
Gtk-Message: 09:51:05.919: GtkDialog mapped without a transient parent. This is discouraged.
(nautilus:12124): Gtk-CRITICAL **: 09:51:05.920: gtk_widget_show: assertion 'GTK_IS_WIDGET (widget)' failed
** (nautilus:12124): CRITICAL **: 09:51:05.921: setup_side_pane_width: assertion 'priv->sidebar != NULL' failed
** (nautilus:12124): WARNING **: 09:51:06.045: Unable to get contents of the bookmarks file: Error opening file /root/.gtk-bookmarks: No such file or directory
** (nautilus:12124): WARNING **: 09:51:06.045: Unable to get contents of the bookmarks file: Error opening file /root/.gtk-bookmarks: No such file or directory
Nautilus-Share-Message: 09:51:06.135: Called "net usershare info" but it failed: Failed to execute child process “net” (No such file or directory)
https://github.com/electron/electron/issues/12423