• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android Studio 2.3.3 will not install on Linux

Trying to install on Debian9, the install program tries to download the SDK (about 10 gigs I guess) to the tmp partition (which on a typical linux installation is about 350mb) and crashes when it runs out of space. I cannot change the download destination. I've tried every workaround I can find on the net and nothing works.

I installed it on my windows machine at work with no problem at all, unfortunately all I have at home is a linux machine. Asides from reformatting my hard drive, reinstalling linux and creating a 20gig tmp partition in the process, is there any known way to get it to work?

Thanks
 
This problem frustrated the hell out of me for a long time. I had 7GB free on the root partition, but Android Studio failed to update because it was dumping all updates in to /tmp, and 7GB was not enough! Turns out it's is a known problem with Android Studio updates. There's a JVM argument to tell Android Studio to use a different tmp location for downloads. This worked for me, as I directed it to an external disc. I'll locate the details and let you know.
 
Upvote 0
Set this as an environment variable, before starting Android Studio. You should put it in your .profile so it gets set when you log in.

export _JAVA_OPTIONS=-Djava.io.tmpdir=<path to tmp dir>

Where <path to tmp dir> is a directory on a partition with sufficient free space (many GBs)
 
  • Like
Reactions: svim
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones