Reduce Android Studio Project Size

前端 未结 6 1320
再見小時候
再見小時候 2021-02-01 02:48

I want to reduce Android Studio project size to save it for after use

In MS Visual Studio, we can delete *.ipch, *.sdf and Debug files to reduce the project size

6条回答
  •  情歌与酒
    2021-02-01 03:35

    The file .gitignore containted in the project created by AndroidStudio lists all files / patterns not to be stored in the git repository, i.e. those files that are not required for building the project. Therefore, it should be safe to remove all files / directories matching the patterns listed in the .gitignore file.

    In my projects it lists:

    *.iml
    .gradle
    /local.properties
    /.idea/workspace.xml
    /.idea/libraries
    .DS_Store
    /build
    /captures
    .externalNativeBuild
    

提交回复
热议问题