/tmp directory in Linux Android SDK

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

    After previous suggestions did not work for me, I want to add another (not very clean) solution:

    Upon starting to install a new virtual device (still using /tmp) the file

    ~/Android/Sdk/system-images/android-< version >/google_apis/x86/.installer/.installData
    

    is created, which contains the temp path. Cancel the download, edit the temp path to your desired folder and restart the installation of the device.

    I later realized that the solution adding -Djava.io.tmpdir=< tempdir > as suggested by Paul Ratazzi via Help -> Edit Custom VM Options did not work for me, since it was added to android-studio/bin/studio64.vmoptions but adding it to android-studio/bin/studio.vmoptions instead did the job for me. That is probably the better way to do it...

提交回复
热议问题