/tmp directory in Linux Android SDK

前端 未结 15 2317
醉话见心
醉话见心 2020-12-28 15:00

Just to tinker with it, last night I installed the Android Studio/SDK, and both during install and use, it repeatedly blew my 2Gb /tmp partition. Is there any way to tell t

15条回答
  •  旧巷少年郎
    2020-12-28 15:41

    Chris Moller's answer made me curious to check source code if there is better way how to fix this /tmp/ issue. And I can see that Android studio 2.3 has option STUDIO_VM_OPTIONS which allows specify file with JDK options.

    So you can just use snippet below and /var/tmp/androidTmp will be use instead of /tmp

    echo "-Djava.io.tmpdir=/var/tmp/androidTmp" > ~/android-studio-tmp.fix
    STUDIO_VM_OPTIONS=~/android-studio.fix android-studio
    

提交回复
热议问题