/tmp directory in Linux Android SDK

前端 未结 15 2307
醉话见心
醉话见心 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:57

    Did a little poking around in the code. The solution is to to start the JVM with a command-line argument that overrides the default tmpdir path:

    -Djava.io.tmpdir=whatever

    There may be more subtle ways to do it but all I did was edit .../android-studio/bin/studio.sh to replace

    VM_OPTIONS=""

    with

    VM_OPTIONS="-Djava.io.tmpdir=/mnt/disk5/android/tmp"

提交回复
热议问题