Moving .android on Linux

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Android Studio complains that it can't launch the emulator due to a lack of space.
The folder ~/.android contains (among others) the virtual devices and is therefore quite big. I would like to move it to another partition where there is more space.
There are plenty of descriptions out there explaing how to move this directory: just move the directory and set the environment variable ANDROID_SDK_HOME.
The problem is, all of these explanations are for Windows.



I have moved the directory and tried setting the environment variable in ~/.bashrc (which is sourced by ~/.bash_profile) and ~/.profile while Android Studio was not running



export ANDROID_SDK_HOME='/mnt/data/accessories/android'


and in ~/.pam_environment (as recommended here)



ANDROID_SDK_HOME=/home/user/data/accessories/android


Android Studio opens happily after the time it needs, creates a new ~/.android directory without saying a word and does not find the virtual devices.



It does not matter whether I am running android-studio from the command line or via an i3 shortcut.



I have rebooted the entire system before launching Android Studio - just in case.



I am using Arch Linux and Android Studio 3.2.



How do I move ~/.android on Linux?










share|improve this question

























    up vote
    0
    down vote

    favorite












    Android Studio complains that it can't launch the emulator due to a lack of space.
    The folder ~/.android contains (among others) the virtual devices and is therefore quite big. I would like to move it to another partition where there is more space.
    There are plenty of descriptions out there explaing how to move this directory: just move the directory and set the environment variable ANDROID_SDK_HOME.
    The problem is, all of these explanations are for Windows.



    I have moved the directory and tried setting the environment variable in ~/.bashrc (which is sourced by ~/.bash_profile) and ~/.profile while Android Studio was not running



    export ANDROID_SDK_HOME='/mnt/data/accessories/android'


    and in ~/.pam_environment (as recommended here)



    ANDROID_SDK_HOME=/home/user/data/accessories/android


    Android Studio opens happily after the time it needs, creates a new ~/.android directory without saying a word and does not find the virtual devices.



    It does not matter whether I am running android-studio from the command line or via an i3 shortcut.



    I have rebooted the entire system before launching Android Studio - just in case.



    I am using Arch Linux and Android Studio 3.2.



    How do I move ~/.android on Linux?










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Android Studio complains that it can't launch the emulator due to a lack of space.
      The folder ~/.android contains (among others) the virtual devices and is therefore quite big. I would like to move it to another partition where there is more space.
      There are plenty of descriptions out there explaing how to move this directory: just move the directory and set the environment variable ANDROID_SDK_HOME.
      The problem is, all of these explanations are for Windows.



      I have moved the directory and tried setting the environment variable in ~/.bashrc (which is sourced by ~/.bash_profile) and ~/.profile while Android Studio was not running



      export ANDROID_SDK_HOME='/mnt/data/accessories/android'


      and in ~/.pam_environment (as recommended here)



      ANDROID_SDK_HOME=/home/user/data/accessories/android


      Android Studio opens happily after the time it needs, creates a new ~/.android directory without saying a word and does not find the virtual devices.



      It does not matter whether I am running android-studio from the command line or via an i3 shortcut.



      I have rebooted the entire system before launching Android Studio - just in case.



      I am using Arch Linux and Android Studio 3.2.



      How do I move ~/.android on Linux?










      share|improve this question













      Android Studio complains that it can't launch the emulator due to a lack of space.
      The folder ~/.android contains (among others) the virtual devices and is therefore quite big. I would like to move it to another partition where there is more space.
      There are plenty of descriptions out there explaing how to move this directory: just move the directory and set the environment variable ANDROID_SDK_HOME.
      The problem is, all of these explanations are for Windows.



      I have moved the directory and tried setting the environment variable in ~/.bashrc (which is sourced by ~/.bash_profile) and ~/.profile while Android Studio was not running



      export ANDROID_SDK_HOME='/mnt/data/accessories/android'


      and in ~/.pam_environment (as recommended here)



      ANDROID_SDK_HOME=/home/user/data/accessories/android


      Android Studio opens happily after the time it needs, creates a new ~/.android directory without saying a word and does not find the virtual devices.



      It does not matter whether I am running android-studio from the command line or via an i3 shortcut.



      I have rebooted the entire system before launching Android Studio - just in case.



      I am using Arch Linux and Android Studio 3.2.



      How do I move ~/.android on Linux?







      android






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 13 mins ago









      jakun

      1506




      1506

























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479212%2fmoving-android-on-linux%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479212%2fmoving-android-on-linux%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)