Is it possible to allocate these folders in another place?

后端 未结 6 476
甜味超标
甜味超标 2020-11-30 18:27

I am installing Android Studio and I have by default the path C:\\Users\\Administrator\\AppData\\Local\\Android\\sdk to set my SDK. If

6条回答
  •  猫巷女王i
    2020-11-30 19:20

    How to move data from %UserProfile%

    The folders will still remain under %UserProfile%, but not the data.


    Move .android

    1. Android Studio is closed
    2. Add Environment Variable

      Create "System variable":

      Variable name: ANDROID_SDK_HOME

      Variable value: D:\Android


    Move .AndroidStudio

    This is a example with Android Studio version 3.1

    1. Start Android Studio
    2. Help -> Edit Custom Properties...
    3. Click Yes to create file
    4. Edit file with:

      idea.config.path=D:/Android/.AndroidStudio3.1/config

      idea.system.path=D:/Android/.AndroidStudio3.1/system

    5. The file "idea.properties" is located under:

      %UserProfile%/.AndroidStudio3.1/config

    6. Close Android Studio

    7. Delete all under %UserProfile%/.AndroidStudio3.1 except the file "/config/idea.properties"
    8. Optional: Delete older version folders of .AndroidStudio

    Don't edit "Android Studio/bin/idea.properties". When updating Android Studio this file is cleared.


    Move .gradle

    1. Start Android Studio
    2. File -> Settings... -> Gradle
    3. Change "Service directory path" to:

      D:/Android/.gradle


    Update Android Studio

    1. Start Android Studio
    2. "Import Studio settings from" is showed
    3. Select: D:/Android/.AndroidStudio3.0/config

提交回复
热议问题