I downloaded the Android Studio in my, but I run into an issue where it seems that the Android Studio setup is stuck on "starting download too long".
I tried reinstalling and try alternatives but it is not working…
I downloaded the Android Studio in my, but I run into an issue where it seems that the Android Studio setup is stuck on "starting download too long".
I tried reinstalling and try alternatives but it is not working…
2
Answers
That will take time, let it run and it will complete the download and proceed in the installation process
Android Studio is most likely downloading the components in the background. It should give you an indication that something is happening in order to give you a good user experience. Providing clear and timely (within 200ms) feedback to the user is a core principle of UX, so Android Studio is definitely flawed here.
Troubleshooting Android Studio’s download process using
strace
:If you want to verify what Android Studio is doing in the background, you could use the tools available to you on Ubuntu or any other Linux distro, such as
strace
. Here’s what I did.First, find the process ID of the Android Studio process, like this:
Note the process ID in this example is 8121. Next, use
strace
to get a real-time view of what syscalls the process and its threads are calling. We are interested in thewrite
syscall, to find out if the process is writing a file anywhere:Press ctrl–c to terminate the
strace
command. In this example, you can see that the Android Studio process is writing to a file named/home/foobaruser/Android/Sdk/.temp/PackageOperation01/x86_64-34_r13.zip.asdownload
. You can get a real-time update on the size of this file by running this command: